From 480e46c5b2277ed57e560f34bfbeb059334359c5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 6 Apr 2023 17:59:48 +0100 Subject: [PATCH] Fix my lazy regexing Co-authored-by: Robin --- scripts/reformat-release-notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reformat-release-notes.py b/scripts/reformat-release-notes.py index f8ad1824..ad216ff4 100755 --- a/scripts/reformat-release-notes.py +++ b/scripts/reformat-release-notes.py @@ -11,5 +11,5 @@ import sys import re for line in sys.stdin: - matches = re.match(r'^\* (.*) by (.*) in (.*)$', line.strip()) + matches = re.match(r'^\* (.*) by (\S+) in (\S+)$', line.strip()) print("* %s (%s)" % (matches[1], matches[3]))