Better handling of version format in relevant_versions()
This commit is contained in:
parent
2353e4ccc1
commit
7f6c3a7123
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class AppAutoUpdater:
|
|||
elif tag.startswith("release-"):
|
||||
t_to_check = tag.split("-", 1)[-1].replace("-", ".")
|
||||
|
||||
if re.match(r"^v?[\d\.]*\-?\d$", t_to_check):
|
||||
if re.match(r"^v?\d+(\.\d+)*(\-\d+)?$", t_to_check):
|
||||
return AppAutoUpdater.tag_to_int_tuple(t_to_check)
|
||||
print(f"Ignoring tag {t_to_check}, doesn't look like a version number")
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue