Closed k2s closed 5 years ago
I believe this happend due to StandardJS suggestions.
version 1.1.4 was comparing string variables and number variables with == and !=
==
!=
'2'==2
'2'<=2
'2'!=2
'2'!=3
version 2.0.1 breaks this by using === and !==
===
!==
When looking at how `'2'<=2 is trueworks you should revert back to use==and!=`.
`'2'<=2
works you should revert back to use
and
Ouch, great catch! This is an artifact of running standard with the --fix flag -- this will be reverted asap.
--fix
This is fixed in Jexl 2.0.2, published minutes ago.
I believe this happend due to StandardJS suggestions.
version 1.1.4 was comparing string variables and number variables with
==
and!=
'2'==2
is true'2'<=2
is true'2'!=2
is false'2'!=3
is trueversion 2.0.1 breaks this by using
===
and!==
'2'==2
is false'2'<=2
is true'2'!=2
is true'2'!=3
is trueWhen looking at how
`'2'<=2
is trueworks you should revert back to use
==and
!=`.