mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Upload updates file as well
This commit is contained in:
committed by
Nikhil Badyal
parent
7444ef9029
commit
0fe165a09e
+4
-4
@@ -173,16 +173,16 @@ def slugify(string: str) -> str:
|
||||
modified_string = string.lower()
|
||||
|
||||
# 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
|
||||
modified_string = re.sub(r"\s+", "-", modified_string)
|
||||
modified_string = re.sub(r"\s+", ".", modified_string)
|
||||
|
||||
# Remove consecutive dashes
|
||||
modified_string = re.sub(r"-+", "-", modified_string)
|
||||
modified_string = re.sub(r"-+", ".", modified_string)
|
||||
|
||||
# Remove leading and trailing dashes
|
||||
return modified_string.strip("-")
|
||||
return modified_string.strip(".")
|
||||
|
||||
|
||||
def _check_version(output: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user