summaryrefslogtreecommitdiffstats
path: root/bin/egencache
diff options
context:
space:
mode:
Diffstat (limited to 'bin/egencache')
-rwxr-xr-xbin/egencache2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/egencache b/bin/egencache
index cc83f9fd1..1a6a0aa87 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -566,7 +566,7 @@ class GenChangeLogs(object):
# XXX: strip the repoman suffix note from the commit message
# strip '<cp>: ', '[<cp>] ', and similar
- body[0] = re.sub(r'^\W*' + cp + '\W+', '', body[0])
+ body[0] = re.sub(r'^\W*' + re.escape(cp) + r'\W+', '', body[0])
# don't break filenames on hyphens
self._wrapper.break_on_hyphens = False