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):