Fix my lazy regexing
Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
parent
2b71a6c4f4
commit
480e46c5b2
1 changed files with 1 additions and 1 deletions
|
@ -11,5 +11,5 @@ import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
for line in sys.stdin:
|
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]))
|
print("* %s (%s)" % (matches[1], matches[3]))
|
||||||
|
|
Loading…
Reference in a new issue