changeset 38477 | de275ab362cb |
parent 38474 | 96f65bdf0bf4 |
child 38576 | a3130208db1c |
--- a/mercurial/utils/stringutil.py Tue Jun 26 11:38:58 2018 -0400 +++ b/mercurial/utils/stringutil.py Wed Jun 27 10:21:07 2018 -0400 @@ -25,7 +25,7 @@ # regex special chars pulled from https://bugs.python.org/issue29995 # which was part of Python 3.7. -_respecial = pycompat.bytestr(b'()[]{}?*+-|^$\\.# \t\n\r\v\f') +_respecial = pycompat.bytestr(b'()[]{}?*+-|^$\\.&~# \t\n\r\v\f') _regexescapemap = {ord(i): (b'\\' + i).decode('latin1') for i in _respecial} def reescape(pat):