Skip to content

Commit 8bdb1ba

Browse files
committed
erge branch 'master' of github.com:phyng/python-cookbook
2 parents 7b0694e + 44ca889 commit 8bdb1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angango.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _extend_attr(self, attrs):
2424
yield 'data-' + attr
2525

2626
def parse_ng_repeat(self):
27-
PATTERN = re.compile(r'^\s*([a-zA-Z][a-zA-Z0-9_]*)\s+in\s+([a-zA-Z][a-zA-Z0-9_]*)\s*$')
27+
PATTERN = re.compile(r'^\s*([a-zA-Z]\w*)\s+in\s+([a-zA-Z]\w*)\s*$')
2828
for attr in ['ng-repeat', 'data-ng-repeat']:
2929
for ele in self.d('[{}]'.format(attr)):
3030
ele = pq(ele)

0 commit comments

Comments
 (0)