-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
Not SemverThis issue does not belong to semver or is an invalid issueThis issue does not belong to semver or is an invalid issueWontfixInvalid, out-of-scope, or other inappropriate issuesInvalid, out-of-scope, or other inappropriate issues
Description
Althoug semver states that m.m.p should be present. That does not mean it always is. Some software only gives a major or major.minor number. I would like semver to parse those numbers with minor or patch numbers defaulting to 0. That's what is ment by those major only numbers anyway.
version = semver.parse('3.0')
Should result in 3.0.0
version = semver.parse('10')
Should result in 10.0.0
Anteru, RazerM, jimmy-lt and adrian-skybaker
Metadata
Metadata
Assignees
Labels
Not SemverThis issue does not belong to semver or is an invalid issueThis issue does not belong to semver or is an invalid issueWontfixInvalid, out-of-scope, or other inappropriate issuesInvalid, out-of-scope, or other inappropriate issues