Addressing a test

This commit is contained in:
Jonathan Bobel
2025-03-17 16:49:30 -04:00
parent fbf0fb1f0d
commit 43c0d6244a
2 changed files with 2 additions and 3 deletions

View File

@@ -682,4 +682,4 @@ def slugify(text):
"""
Converts text to lowercase, replaces spaces with hyphens, and removes invalid characters.
"""
return re.sub(r'[^a-z0-9-]', '', re.sub(r'\s+', '-', text.lower()))
return re.sub(r"[^a-z0-9-]", "", re.sub(r"\s+", "-", text.lower()))