1
0

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
This commit is contained in:
Breezebuilder
2025-03-11 13:34:02 +11:00
parent f47207016c
commit d574e1e072

View File

@@ -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