Update app.js
This commit is contained in:
parent
e38154f73a
commit
338ceb853a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue