electron: fix "Incomplete regular expression for hostnames" in update script

This commit is contained in:
Sandro Jäckel
2024-09-17 15:14:21 +02:00
parent 1fcc94ec56
commit 0b3aa5bd5c

View File

@@ -399,7 +399,7 @@ def repo_from_dep(dep: dict) -> Optional[Repo]:
if search_object:
return GitHubRepo(search_object.group(1), search_object.group(2), rev)
if re.match(r"https://.+.googlesource.com", url):
if re.match(r"https://.+\.googlesource.com", url):
return GitilesRepo(url, rev)
return GitRepo(url, rev)