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