aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 2a8bcb8..161a9f5 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1401,7 +1401,7 @@ class LoreSubject:
subject = re.sub(r'^\w+:\s*\[', '[', subject)
# Fix [PATCHv3] to be properly [PATCH v3]
- subject = re.sub(r'^\[\s*(patch)(v\d+).*', '[$1 $2$3', subject, flags=re.I)
+ subject = re.sub(r'^\[\s*(patch)(v\d+)(.*)', '[\\1 \\2\\3', subject, flags=re.I)
# Find all [foo] in the title
while subject.find('[') == 0: