# non-sematic, e.g. 1.2.3.4
re.compile(r"^(?P<version>v|V{0,1})(\.{0,1})(?P<major>0|[1-9]\d*)\.(?P<minor>0+|[1-9]\d*)(\.(?P<patch>0+|[1-9]\d*)(\.(?P<subpatch>0|[1-9]\d*))?)$"),
# non-sematic, e.g. 2023-05[-dev]
- re.compile(r"^(?P<year>[1-9]{1}[0-9]{3})\.(?P<month>[0-9]{2})(-dev){0,1}$"),
+ re.compile(r"^(?P<year>[1-9]{1}[0-9]{3})\.(?P<month>[0-9]{2})(-[a-z]+){0,1}$"),
# non-semantic, e.g. abcdef0
re.compile("^[a-f0-9]{7}$"),
]
def remove(software: str) -> str:
logger.debug("software='%s' - CALLED!", software)
+
if "." not in software and " " not in software:
logger.warning("software='%s' does not contain a version number.", software)
return software