# HG changeset patch # User Sergi Almacellas Abellana # Date 1555837893 -7200 # Sun Apr 21 11:11:33 2019 +0200 # Node ID fb9354a1a9833cff054a39028e3c4d2567ef5ff7 # Parent 320a1692a473810828f148f645711cecadbd0426 Escape \w on url regular expression issue2551042 diff -r 320a1692a473 -r fb9354a1a983 roundup/rest.py --- a/roundup/rest.py Wed Apr 17 20:35:56 2019 -0400 +++ b/roundup/rest.py Sun Apr 21 11:11:33 2019 +0200 @@ -244,7 +244,7 @@ class Routing(object): __route_map = {} __var_to_regex = re.compile(r"<:(\w+)>") - url_to_regex = r"([\w.\-~!$&'()*+,;=:\%%]+)" + url_to_regex = r"([\\w.\-~!$&'()*+,;=:\%%]+)" @classmethod def route(cls, rule, methods='GET'):