semver icon indicating copy to clipboard operation
semver copied to clipboard

aren't 1.0 and 1.0.0 equal?

Open staabm opened this issue 2 years ago • 1 comments

I wonder wheter the result of this operation should be true

var_dump(Comparator::greaterThanOrEqualTo('1.0', '1.0.0'))

it leads to false in the latest release

staabm avatar Dec 18 '23 09:12 staabm

Yeah you need to normalize versions first using VersionParser->normalize.

Seldaek avatar Dec 18 '23 12:12 Seldaek