You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Library is partially non-compliant with semver spec #114
>>> import semver
>>> semver.parse('0.0.0-0foo.1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/semver.py", line 65, in parse
raise ValueError('%s is not valid SemVer string' % version)
ValueError: 0.0.0-0foo.1 is not valid SemVer string
Per item 9, only numeric IDs cannot contain leading zeros -- since 0foo is not entirely numeric, it may contain a leading zero.
Activity
s-celles commentedon Nov 25, 2018
I also understand it this way:
so
What is your opinion @k-bx ?
PR (with fix and test) are welcome @dbarella !
sirzooro commentedon Nov 20, 2019
Any update on this? We use git commit hash as a prerelease part, so sometimes we trigger this error too.
tomschr commentedon Nov 20, 2019
If I'm not mistaken, it is related (or a duplicate?) of #194.
Fix python-semver#194 and python-semver#114: Update semver regex to v…
Fix python-semver#194 and python-semver#114: Update semver regex to v…
sirzooro commentedon Nov 21, 2019
Yes, it is a duplicate. You can close this issue.
tomschr commentedon Nov 21, 2019
Duplicate of #194 so closing.
Fix #194 and #114: Update semver regex to version from semver.org (#198)