From cebc15144869a65786dab116c0fbc35a102afecd Mon Sep 17 00:00:00 2001 From: Jeremy Zimmerman Date: Sat, 3 Jun 2017 11:02:32 -0700 Subject: [PATCH] only single repetition. --- sanic/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/router.py b/sanic/router.py index 2581e178..2821b0cc 100644 --- a/sanic/router.py +++ b/sanic/router.py @@ -163,7 +163,7 @@ class Router: parameters.append(parameter) # 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 # Mark the route as unhashable if it matches the hash key elif re.search(r'/', pattern):