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.
1 parent c9a26f4 commit fd0ea3fCopy full SHA for fd0ea3f
lib/validators/type.js
@@ -7,7 +7,8 @@
7
*/
8
9
function isValid(data, model) {
10
- if (!model.type) {
+ //if (!model.type || typeof model.data === 'undefined') {
11
+ if (!model.type || typeof data === 'undefined') {
12
return true;
13
}
14
lib/validators/value.js
@@ -50,7 +50,7 @@ function isValid(data, model) {
50
51
// Data does not contain something
52
if (model.value.contains) {
53
- var testData = data;
+ var testData = data || '';
54
if(typeof data === 'number') {
55
testData = data.toString();
56
0 commit comments