Commit e3d7f76c authored by Bilbo Brovall's avatar Bilbo Brovall 💬
Browse files

characters topi

parent 62e316f6
Pipeline #16802 passed with stages
in 23 seconds
......@@ -64,8 +64,8 @@ class Router(object):
for key in self.routes:
regex = key
# pylint: disable=anomalous-backslash-in-string
regex = regex.replace('#', '[a-zA-Z0-9\/]*')
regex = regex.replace('+', '[a-zA-Z0-9]+')
regex = regex.replace('#', '[0-9a-zA-Z\-\_]*')
regex = regex.replace('+', '[0-9a-zA-Z\-\_]+')
regex = re.compile(regex)
match = regex.match(endpoint)
if match:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment