updated readme script

This commit is contained in:
Lake 2025-09-19 18:02:22 +10:00
parent dccf3c53fb
commit fa9ece9313

View File

@ -108,14 +108,13 @@ def main():
tags.sort()
versions={}
pattern = re.compile(r"(\w+)-(\d+\.\d+\.\d+\w*)-(\w+)(-\w+)?-runner")
pattern = re.compile(r"(\w+)-(\d+\.\d+\.\d+\w*)-(\w+)?(-\w+)?-runner")
for tag in tags:
matches = pattern.match(tag)
if matches:
groups = matches.groups()
version = groups[1]
component = groups[2]
component = groups[2] if groups[2] else "all"
if groups[3]: # If there is a variance, then apply it to the component
component = f"{component} ({groups[3].strip('-')})"