-
Notifications
You must be signed in to change notification settings - Fork 9
Modifier parsing with separator "+" #492
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The problem
When I parse a version code like "1.0.0+12", I haven't found a way to retrieve the number "12". I don't know if it can be considered a "build number", but the regular expression of "SEMVER" works. I think it's "group 5" in the regular expression, but that group is never used to populate a field in the object.
@ludeeus That is a bug in the modifier extraction (if you use "-" instead, it works). (should be a separate issue)
Operating system
Debian
Python version
3.11
Problem-relevant code
>>> from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
>>> version = AwesomeVersion("1.0.0+12", ensure_strategy=AwesomeVersionStrategy.SEMVER)
>>> version.modifier
>>>Traceback/Error logs
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working