compare-versions
compare-versions copied to clipboard
match satisfies behaviour of semvar
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