poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

Cast input to number before isNumber validation for non-strict #192

Closed OnyekaIjeh closed 6 years ago

OnyekaIjeh commented 6 years ago

This is meant to be a fix for issue #178

For non-strict is casts inputs to number before validation using isNan

thetutlage commented 6 years ago

Mind adding couple of tests for same?

thetutlage commented 6 years ago

Your new PR has just changed all the tests. Also please make sure to lint the code before pushing it.

npm run lint