mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Replace with - everywhere
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ def slugify(string: str) -> str:
|
|||||||
modified_string = string.lower()
|
modified_string = string.lower()
|
||||||
|
|
||||||
# Remove special characters
|
# Remove special characters
|
||||||
modified_string = re.sub(r"[^\w\s-]", "", modified_string)
|
modified_string = re.sub(r"[^\w\s-]", "-", modified_string)
|
||||||
|
|
||||||
# Replace spaces with dashes
|
# Replace spaces with dashes
|
||||||
modified_string = re.sub(r"\s+", "-", modified_string)
|
modified_string = re.sub(r"\s+", "-", modified_string)
|
||||||
|
|||||||
Reference in New Issue
Block a user