From e3a36f16f87428585329ec4d6cee681eb797a8c7 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Thu, 10 Aug 2023 21:51:18 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Updated=20variable=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/utils.py b/src/utils.py index 46248c5..6ff8b15 100644 --- a/src/utils.py +++ b/src/utils.py @@ -52,21 +52,21 @@ def handle_github_response(response: Response) -> None: def slugify(string: str) -> str: """Converts a string to a slug format.""" # Convert to lowercase - string = string.lower() + modified_string = string.lower() # Remove special characters - string = re.sub(r"[^\w\s-]", "", string) + modified_string = re.sub(r"[^\w\s-]", "", modified_string) # Replace spaces with dashes - string = re.sub(r"\s+", "-", string) + modified_string = re.sub(r"\s+", "-", modified_string) # Remove consecutive dashes - string = re.sub(r"-+", "-", string) + modified_string = re.sub(r"-+", "-", modified_string) # Remove leading and trailing dashes - string = string.strip("-") + modified_string = modified_string.strip("-") - return string + return modified_string def check_java(dry_run: bool) -> None: