minor fix in parse_as_rest

This commit is contained in:
mdipierro
2013-01-13 13:15:38 -06:00
parent b1f51c30a6
commit 69fa34b3c5
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -7273,6 +7273,8 @@ def index():
i = 0
while i<len(patterns):
pattern = patterns[i]
if not isinstance(pattern,str):
pattern = pattern[0]
tokens = pattern.split('/')
if tokens[-1].startswith(':auto') and re2.match(tokens[-1]):
new_patterns = auto_table(tokens[-1][tokens[-1].find('[')+1:-1],