diff --git a/helpers.py b/helpers.py index 2189695e..48cf90f5 100644 --- a/helpers.py +++ b/helpers.py @@ -989,7 +989,7 @@ def evaluate_branche_chatgpt(crm_branche, beschreibung, wiki_branche, wiki_kateg line_lower = line_stripped.lower() # WICHTIG: Variable wieder einführen # Flexibleres Parsing mit Regex, ignoriert Groß/Kleinschreibung - branch_match = re.match(r"^(Branche|Branchenzuordnung):\s*(.*)", line_stripped, re.IGNORECASE) + branch_match = re.match(r"^(Branche|Branchenzuordnung|Branchenwahl):\s*(.*)", line_stripped, re.IGNORECASE) if branch_match: suggested_branch = branch_match.group(2).strip().strip('"\'') parsed_branch = True