ansman/validate.js

Numericality not working when adding 'E'

Closed this issue · 1 comments

 numericality: {
          lessThan: 10000,
          greaterThanOrEqualTo: 0,
          onlyInteger: true
}

will allow 123e

This is expected. Use the strict option if you don't want to allow malformed numbers.