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
## Should work
[semver]'1'
[semver]'1.0.0'
[semver]'1.0.0-beta'
[semver]'1.0.0-beta1'
[semver]'1.0.0-beta.1'## Should error but doesn't
[semver]'1.0.0-beta..1'
[semver]'1.0.0-beta...1'## Should error and does
[semver]'1.0.0-beta!1'
Follow semver specification. Throw an error on non-valid version numbers. Like with [semver]'1.0.0-beta!1' which gives:
InvalidArgument: Cannot convert value "1.0.0-beta!1" to type "System.Management.Automation.SemanticVersion". Error: "The input string '' was not in a correct format."
Prerequisites
Steps to reproduce
Here are some examples of invalid semantic versioning version numbers that are not valid by semver.org suggested regex:
This tells me
[semver]isn't fully compliant with semantic versioning v2.0.0.Additional search tags:
SemanticVersion,[SemanticVersion]System.Management.Automation.SemanticVersion,[System.Management.Automation.SemanticVersion]Expected behavior
Follow semver specification. Throw an error on non-valid version numbers. Like with
[semver]'1.0.0-beta!1'which gives:InvalidArgument: Cannot convert value "1.0.0-beta!1" to type "System.Management.Automation.SemanticVersion". Error: "The input string '' was not in a correct format."Actual behavior
Error details
No response
Environment data
Visuals
No response