This commit is contained in:
2025-01-14 07:45:34 -05:00
parent ff04602954
commit 7a63b6525d
7 changed files with 22 additions and 9 deletions

View File

@@ -63,7 +63,8 @@ class TrackMatcher:
extra spaces, and converting to lowercase.
"""
# Remove special characters and convert to lowercase
text = regex.sub(r'[^\w\s-]', '', text.lower())
text = regex.sub(r'[^\w\s-]', '', text).lower()
print(f"Text: {text}")
# Normalize spaces
text = ' '.join(text.split())
return text