validasaur icon indicating copy to clipboard operation
validasaur copied to clipboard

Add `notNaN()` rule

Open Tandashi opened this issue 3 years ago • 0 comments

A nonNaN rule has been added since the existing rules like isNumber, isFloat, isNumeric, minNumber, maxNumber all pass when providing a NaN value.

To provide backwards compatibility, the existing rules have not been changed.

Furthermore, the README has been changed to provide a notice that the above rules don't check for NaN.

Would fix issues like https://github.com/emsifa/validasaur/issues/33

Tandashi avatar Oct 19 '22 17:10 Tandashi