fix: remove release candidate suffix
This commit is contained in:
parent
edfd297bf3
commit
bbae4a01c1
1 changed files with 2 additions and 1 deletions
|
|
@ -222,7 +222,8 @@ def version_parse(v: str):
|
|||
Instead it return the lowest possible version ("0.0.0")
|
||||
"""
|
||||
try:
|
||||
# todo: handle -rc0x
|
||||
# remove release candidate suffix
|
||||
v = v.split("-")[0].split("rc")[0]
|
||||
return version.parse(v)
|
||||
except Exception:
|
||||
return version.parse("0.0.0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue