Fix my lazy regexing

Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
David Baker 2023-04-06 17:59:48 +01:00 committed by GitHub
parent 2b71a6c4f4
commit 480e46c5b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]))