syntax fix
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user