semver4j
semver4j copied to clipboard
Semver("1.0", NPM).satisfies("1.0") is false
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 if you are still interesting, I've made copy of this lib and fix bug reported by you. Look for version 2.0.1