Skip to content

Commit

Permalink
fix: remove release candidate suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Nov 13, 2024
1 parent edfd297 commit bbae4a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lnbits/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bbae4a0

Please sign in to comment.