mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 23:28:16 -05:00
added (',', ';', ':') to notes tokenization in ingredient_parser.py
This commit is contained in:
@@ -118,7 +118,7 @@ class IngredientParser:
|
|||||||
note = ''
|
note = ''
|
||||||
start = 0
|
start = 0
|
||||||
# search for first occurrence of an argument ending in a comma
|
# 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
|
start += 1
|
||||||
if start == len(tokens):
|
if start == len(tokens):
|
||||||
# no token ending in a comma found -> use everything as food
|
# no token ending in a comma found -> use everything as food
|
||||||
|
|||||||
Reference in New Issue
Block a user