diff -r 4f0439981a8a -r 44a519ec5077 mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py Wed Feb 14 15:58:11 2018 +0530 +++ b/mercurial/hgweb/webutil.py Wed Feb 14 16:06:54 2018 +0530 @@ -626,7 +626,7 @@ # delimiters. the replace format and flags are optional, but # delimiters are required. match = re.match( - r'^s%s(.+)(?:(?<=\\\\)|(?