From 338ceb853ae2753893337bb27f04a6b0169936b5 Mon Sep 17 00:00:00 2001 From: iwangu Date: Sun, 16 Aug 2015 21:48:13 +0200 Subject: [PATCH] Update app.js --- examples/custom-validation/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/custom-validation/app.js b/examples/custom-validation/app.js index bd5fd32..6bf31f0 100644 --- a/examples/custom-validation/app.js +++ b/examples/custom-validation/app.js @@ -20,7 +20,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;