Skip to content
Snippets Groups Projects
Commit bb59a4b7 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

fixed parsing to support possible 3 or 4 digit versioning

parent 37dd40b0
No related branches found
No related tags found
3 merge requests!1605Merge 2.8.2.3 work to main,!1581catch up with 2.8.2.3,!1579updating and testing Sam's bumpversion work
Pipeline #14289 passed
......@@ -8,11 +8,11 @@ parse = """(?x)
(?P<patch>0|[1-9]\\d*)
(?:
\\.(?P<smallpatch>0|[1-9]\\d*)
)?
)? # smallpatch section is optional
(?:
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}{pre_l}{pre_n}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment