hgext/keyword.py
changeset 38479 67dc32d4e790
parent 38198 2ce60954b1b7
child 39396 34ba47117164
--- a/hgext/keyword.py	Tue Jun 26 10:33:52 2018 -0400
+++ b/hgext/keyword.py	Tue Jun 26 10:36:23 2018 -0400
@@ -245,7 +245,7 @@
     @util.propertycache
     def escape(self):
         '''Returns bar-separated and escaped keywords.'''
-        return '|'.join(map(re.escape, self.templates.keys()))
+        return '|'.join(map(stringutil.reescape, self.templates.keys()))
 
     @util.propertycache
     def rekw(self):