aboutsummaryrefslogtreecommitdiff
path: root/b4/mbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'b4/mbox.py')
-rw-r--r--b4/mbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 05d46b5..c2e6319 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -231,12 +231,12 @@ def make_am(msgs, cmdargs, msgid):
logger.critical(' Link: %s', linkurl)
base_commit = None
- matches = re.search(r'base-commit: .*?([0-9a-f]+)', first_body, re.MULTILINE)
+ matches = re.search(r'base-commit: .*?([\da-f]+)', first_body, re.MULTILINE)
if matches:
base_commit = matches.groups()[0]
else:
# Try a more relaxed search
- matches = re.search(r'based on .*?([0-9a-f]{40})', first_body, re.MULTILINE)
+ matches = re.search(r'based on .*?([\da-f]{40})', first_body, re.MULTILINE)
if matches:
base_commit = matches.groups()[0]
@@ -492,7 +492,7 @@ def get_extra_series(msgs: list, direction: int = 1, wantvers: Optional[int] = N
seen_msgids.add(msgid)
lsub = b4.LoreSubject(msg['Subject'])
if direction > 0 and lsub.reply:
- # Does it have an "Obsoleted-by: trailer?
+ # Does it have an Obsoleted-by: trailer?
rmsg = b4.LoreMessage(msg)
trailers, mismatches = rmsg.get_trailers()
for tl in trailers: