From fde4ea8c4cc28505cdca37d9193f90a6a6a195fa Mon Sep 17 00:00:00 2001 From: smilerz Date: Tue, 25 Apr 2023 12:38:14 -0500 Subject: [PATCH] filtered automations to tokens present --- cookbook/helper/ingredient_parser.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cookbook/helper/ingredient_parser.py b/cookbook/helper/ingredient_parser.py index 29df8c54f..57b70f44c 100644 --- a/cookbook/helper/ingredient_parser.py +++ b/cookbook/helper/ingredient_parser.py @@ -274,10 +274,6 @@ class IngredientParser: return: new ingredient string """ - #################################################### - #################################################### - #################################################### - #################################################### if self.ignore_rules: return ingredient @@ -313,8 +309,6 @@ class IngredientParser: if len(ingredient) == 0: raise ValueError('string to parse cannot be empty') - ingredient = self.apply_transpose_words_automations(ingredient) - # some people/languages put amount and unit at the end of the ingredient string # if something like this is detected move it to the beginning so the parser can handle it if len(ingredient) < 1000 and re.search(r'^([^\W\d_])+(.)*[1-9](\d)*\s*([^\W\d_])+', ingredient):