From 7eded4b716d3e15494f75fc72cb7932c423b4f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 6 Mar 2024 18:47:56 +0100 Subject: [PATCH] Better handling of version format in relevant_versions() --- tools/autoupdate_app_sources/autoupdate_app_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/autoupdate_app_sources/autoupdate_app_sources.py b/tools/autoupdate_app_sources/autoupdate_app_sources.py index 513ddf94..9f6fe705 100755 --- a/tools/autoupdate_app_sources/autoupdate_app_sources.py +++ b/tools/autoupdate_app_sources/autoupdate_app_sources.py @@ -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