update_manager: improve the git owner regex
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
bf48744048
commit
62324650e5
|
@ -579,7 +579,7 @@ class GitUpdater:
|
||||||
return
|
return
|
||||||
|
|
||||||
remote_url = remote_url.strip()
|
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:
|
if owner_match is not None:
|
||||||
self.owner = owner_match.group(1)
|
self.owner = owner_match.group(1)
|
||||||
self.is_dirty = repo_version.endswith("dirty")
|
self.is_dirty = repo_version.endswith("dirty")
|
||||||
|
|
Loading…
Reference in New Issue