diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 3b7fbf8..fdfd74a 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -255,7 +255,8 @@ class AppAutoUpdater: match = re.match(version_regex, tag) if match is None: return None - return match.group(1) + # Basically: either groupdict if named capture gorups, sorted by names, or groups() + return ".".join(dict(sorted(match.groupdict().items())).values() or match.groups()) def version_numbers(tag: str) -> Optional[tuple[int, ...]]: filter_keywords = ["start", "rc", "beta", "alpha"]