only single repetition.

This commit is contained in:
Jeremy Zimmerman 2017-06-03 11:02:32 -07:00
parent 4a1d1a0dc1
commit cebc151448

View File

@ -163,7 +163,7 @@ class Router:
parameters.append(parameter) parameters.append(parameter)
# Mark the whole route as unhashable if it has the hash key in it # Mark the whole route as unhashable if it has the hash key in it
if re.search(r'(^|[^^]){1}/', pattern): if re.search(r'(^|[^^]){0}/', pattern):
properties['unhashable'] = True properties['unhashable'] = True
# Mark the route as unhashable if it matches the hash key # Mark the route as unhashable if it matches the hash key
elif re.search(r'/', pattern): elif re.search(r'/', pattern):