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
When passing 1.2 - 1.0 for range, this method returns true. However, I thought that it would return false. I think that 1.2 - 1.0 isn't a valid version range for NPM.
The text was updated successfully, but these errors were encountered:
The
SemVersionRange.TryParseNpm
methods will returntrue
if you pass inverted version ranges.Example
Imagine that you are trying to check if a version range is a valid version range. You can create code similar to the following:
When passing
1.2 - 1.0
forrange
, this method returnstrue
. However, I thought that it would returnfalse
. I think that1.2 - 1.0
isn't a valid version range for NPM.The text was updated successfully, but these errors were encountered: