test for automations applied during url import

renamed TITLE_REPLACE to NAME_REPLACE
This commit is contained in:
smilerz
2023-09-01 07:37:36 -05:00
parent 2679a22464
commit 9b5e39415e
11 changed files with 99 additions and 31 deletions

View File

@ -339,7 +339,7 @@ class IngredientParser:
ingredient = re.sub(r'(?<=([a-z])|\d)(?=(?(1)\d|[a-z]))', ' ', ingredient)
if not self.ignore_rules:
ingredient = self.automation.apply_transpose_words_automations(ingredient)
ingredient = self.automation.apply_transpose_automation(ingredient)
tokens = ingredient.split() # split at each space into tokens
if len(tokens) == 1: