From ed2d1a3211ef9485449ae81eac4f78d9ff8d379c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20B=C3=B6hm?= Date: Mon, 28 Apr 2014 17:04:15 +0200 Subject: [PATCH] Allow object.properties as collection in pouch-repeat --- angular-pouchdb.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-pouchdb.coffee b/angular-pouchdb.coffee index 6490af4..b39720f 100644 --- a/angular-pouchdb.coffee +++ b/angular-pouchdb.coffee @@ -116,7 +116,7 @@ pouchdb.directive 'pouchRepeat', top = angular.element(document.createElement('div')) parent.append(top) [cursor, collection, sort] = - /^\s*([a-zA-Z0-9]+)\s*in\s*([a-zA-Z0-9]+)\s*(?:order by\s*([a-zA-Z0-9\.,]+))?$/.exec($attr.pouchRepeat).splice(1) + /^\s*([a-zA-Z0-9]+)\s*in\s*([a-zA-Z0-9\.]+)\s*(?:order by\s*([a-zA-Z0-9\.,]+))?$/.exec($attr.pouchRepeat).splice(1) # The blocks managed by this directive. blocks = []