changeset 38475 | 67dc32d4e790 |
parent 38448 | dae829b4de78 |
child 38519 | 4455e5d4d59c |
--- a/mercurial/hgweb/webutil.py Tue Jun 26 10:33:52 2018 -0400 +++ b/mercurial/hgweb/webutil.py Tue Jun 26 10:36:23 2018 -0400 @@ -766,7 +766,7 @@ for key, pattern in websubdefs: # grab the delimiter from the character after the "s" unesc = pattern[1:2] - delim = re.escape(unesc) + delim = stringutil.reescape(unesc) # identify portions of the pattern, taking care to avoid escaped # delimiters. the replace format and flags are optional, but