From patchwork Wed Jun 27 14:40:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3850: stringutil: update list of re-special characters to include &~ From: phabricator X-Patchwork-Id: 32463 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 27 Jun 2018 14:40:36 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGde275ab362cb: stringutil: update list of re-special characters to include &~ (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3850?vs=9323&id=9325 REVISION DETAIL https://phab.mercurial-scm.org/D3850 AFFECTED FILES mercurial/utils/stringutil.py CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/utils/stringutil.py b/mercurial/utils/stringutil.py --- a/mercurial/utils/stringutil.py +++ b/mercurial/utils/stringutil.py @@ -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):