Skip to content

Conversation

@Tandashi
Copy link

@Tandashi Tandashi commented Oct 19, 2022

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 #33

@Tandashi Tandashi changed the title [https://github.com/emsifa/validasaur/issues/33]: Add notNaN rule Add notNaN rule Oct 19, 2022
@Tandashi Tandashi changed the title Add notNaN rule Add notNaN() rule Oct 19, 2022
Added a `nonNaN` rule 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant