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:
2
.github/scripts/update_mod_versions.py
vendored
2
.github/scripts/update_mod_versions.py
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user