compare-versions icon indicating copy to clipboard operation
compare-versions copied to clipboard

match satisfies behaviour of semvar

Open Ankcorn opened this issue 1 year ago • 0 comments

Evaluating these conditions as false which the semvar library is evaluating to true

satisfies('3.0.3', '3.*')
satisfies('3.0.3', '3')

I believe this is because no operator is supplied so they are being compared with the = operator when "~" or "^" would match the behaviour I need.

This fixes https://github.com/omichelsen/compare-versions/issues/70

Ankcorn avatar Oct 01 '23 20:10 Ankcorn