Upload updates file as well

This commit is contained in:
Nikhil Badyal
2024-12-24 13:38:26 +05:30
committed by Nikhil Badyal
parent 7444ef9029
commit 0fe165a09e
4 changed files with 10 additions and 7 deletions
+4 -4
View File
@@ -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: