There was an error while loading. Please reload this page.
2 parents ee1abdf + c4714e5 commit 5c515d1Copy full SHA for 5c515d1
1 file changed
scripts/konflux_resolve.py
@@ -67,8 +67,7 @@ def parse_version(
67
version_str = version_str.strip()
68
if "+" in version_str:
69
version_str = version_str.split("+", 1)[0]
70
- if version_str.endswith(".*"):
71
- version_str = version_str[:-2]
+ version_str = version_str.removesuffix(".*")
72
m = _VERSION_RE.match(version_str)
73
if m is None:
74
raise ValueError(f"Cannot parse version: {version_str!r}")
0 commit comments