syntax fix

This commit is contained in:
2025-04-02 10:58:58 +00:00
parent 79c9c77832
commit ceb9379c82

View File

@@ -67,7 +67,7 @@ def normalize_company_name(name):
]
pattern = r'\b(' + '|'.join(forms) + r')\b'
normalized = re.sub(pattern, '', name, flags=re.IGNORECASE)
normalized = re.sub(r'[\-]', ' ', normalized)
normalized = re.sub(r'[\-]', ' ', normalized)
normalized = re.sub(r'\s+', ' ', normalized).strip()
return normalized.lower()