mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-09 09:42:17 +02:00
fix: remove release candidate suffix
This commit is contained in:
@@ -222,7 +222,8 @@ def version_parse(v: str):
|
|||||||
Instead it return the lowest possible version ("0.0.0")
|
Instead it return the lowest possible version ("0.0.0")
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
# todo: handle -rc0x
|
# remove release candidate suffix
|
||||||
|
v = v.split("-")[0].split("rc")[0]
|
||||||
return version.parse(v)
|
return version.parse(v)
|
||||||
except Exception:
|
except Exception:
|
||||||
return version.parse("0.0.0")
|
return version.parse("0.0.0")
|
||||||
|
Reference in New Issue
Block a user