From 157af15a2ad8477ca1da4c3156b9bce98f122122 Mon Sep 17 00:00:00 2001 From: smilerz Date: Sat, 18 Jan 2025 09:29:09 -0600 Subject: [PATCH] added (',', ';', ':') to notes tokenization in ingredient_parser.py --- cookbook/helper/ingredient_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/ingredient_parser.py b/cookbook/helper/ingredient_parser.py index be53c21a2..b4bf0568b 100644 --- a/cookbook/helper/ingredient_parser.py +++ b/cookbook/helper/ingredient_parser.py @@ -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