Remove a redundant character from a regex.
@@ -679,7 +679,7 @@ def slugify(text):
Removes and replaces special characters in a given text.
"""
# Removes non-alpha characters.
- norm_text = re.sub(r'[^\w\s\-\//]', '', text)
+ norm_text = re.sub(r'[^\w\s\-\/]', '', text)
# Converts spaces and slashes to underscores.
norm_text = re.sub(r'([\s]+|[\/]+)', '_', norm_text)
