We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a832b46 + 7c6d658 commit 6d08c4aCopy full SHA for 6d08c4a
src/utils/validators.js
@@ -85,7 +85,7 @@ module.exports = {
85
double(value, field) {
86
let res = checkEmpty(value, field.required); if (res != null) return res;
87
88
- if (!(Number(value) === value && value % 1 !== 0))
+ if (!isNumber(value) || isNaN(value))
89
return [msg(resources.invalidNumber)];
90
},
91
@@ -227,4 +227,4 @@ module.exports = {
227
if (!re.test(value))
228
return [msg(resources.invalidTextContainSpec)];
229
}
230
-};
+};
0 commit comments