Skip to content

Commit

Permalink
maston: accept launch without price
Browse files Browse the repository at this point in the history
  • Loading branch information
trnila committed Nov 10, 2023
1 parent 18cf6dd commit a048851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lunches.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def maston(dom):
soup = True
yield Soup(line.split(':', 1)[1])
else:
m = re.search('((?P<num>\d)\))?\s*(?P<name>.*?)\s*(?P<price>\d+),-', line)
m = re.search('((?P<num>\d)\))?\s*(?P<name>.+)(\s*(?P<price>\d+),-)?', line)
if m:
yield Lunch(**m.groupdict())
else:
Expand Down

0 comments on commit a048851

Please sign in to comment.