semver4j icon indicating copy to clipboard operation
semver4j copied to clipboard

Semver("1.0", NPM).satisfies("1.0") is false

Open dac2k9 opened this issue 5 years ago • 1 comments

Semver("1.0", NPM).satisfies("1.0") will return false, while Semver("1.0", NPM).satisfies("=1.0") will return true.

The one used by NPM states "A leading "=" or "v" character is stripped off and ignored." so I think this is a bug? The docs at https://www.npmjs.com/package/semver also states "= Equal. If no operator is specified, then equality is assumed, so this operator is optional, but MAY be included."

dac2k9 avatar Nov 05 '20 12:11 dac2k9

@dac2k9 if you are still interesting, I've made copy of this lib and fix bug reported by you. Look for version 2.0.1

piotrooo avatar Jul 22 '22 22:07 piotrooo