Skip to content

Commit

Permalink
added (',', ';', ':') to notes tokenization in ingredient_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
smilerz authored Jan 18, 2025
1 parent 100242f commit 157af15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/helper/ingredient_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def parse_food_with_comma(self, tokens):
note = ''
start = 0
# search for first occurrence of an argument ending in a comma
while start < len(tokens) and not tokens[start].endswith(','):
while start < len(tokens) and not tokens[start].endswith((',', ';', ':')):
start += 1
if start == len(tokens):
# no token ending in a comma found -> use everything as food
Expand Down

0 comments on commit 157af15

Please sign in to comment.