added (',', ';', ':') to notes tokenization in ingredient_parser.py

This commit is contained in:
smilerz
2025-01-18 09:29:09 -06:00
committed by GitHub
parent 100242f0a6
commit 157af15a2a

View File

@@ -118,7 +118,7 @@ class IngredientParser:
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