From 842b883e7dd66296cd4073b51fcce7bd7754415d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 3 Oct 2010 19:02:55 +0200 Subject: [PATCH] egencache --update-changelogs: escape CP regexp --- bin/egencache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ': ', '[] ', 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 -- 2.26.2