From d574e1e072089b7841bf0e418b4ce4cf7a321605 Mon Sep 17 00:00:00 2001 From: Breezebuilder Date: Tue, 11 Mar 2025 13:34:02 +1100 Subject: [PATCH] Fix mod version updater failing for mods with repos ending with characters 'g', 'i', or 't' `rstrip` removes any matched characters from the end of the string until an unmatched character is found --- .github/scripts/update_mod_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/update_mod_versions.py b/.github/scripts/update_mod_versions.py index 540e044f..a838ca22 100755 --- a/.github/scripts/update_mod_versions.py +++ b/.github/scripts/update_mod_versions.py @@ -20,7 +20,7 @@ def extract_repo_info(repo_url): owner = match.group(1) repo = match.group(2) # Remove .git suffix if present - repo = repo.rstrip('.git') + repo = repo.removesuffix('.git') return owner, repo return None, None