diff --git a/examples/custom-validation/app.js b/examples/custom-validation/app.js index beef629..74400e7 100644 --- a/examples/custom-validation/app.js +++ b/examples/custom-validation/app.js @@ -21,7 +21,7 @@ var validators = { Formsy.addValidationRule('isYearOfBirth', function (values, value) { value = parseInt(value); - if (typeof value !== 'number' || value !== value) { + if (typeof value !== 'number') { return false; } return value < currentYear && value > currentYear - 130;