update_manager: improve the git owner regex

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-02-28 14:27:10 -05:00
parent bf48744048
commit 62324650e5
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ class GitUpdater:
return
remote_url = remote_url.strip()
owner_match = re.match(r"https?://.*/(.*)/", remote_url)
owner_match = re.match(r"https?://[^/]+/([^/]+)", remote_url)
if owner_match is not None:
self.owner = owner_match.group(1)
self.is_dirty = repo_version.endswith("dirty")