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 e458cc1 commit 9016631Copy full SHA for 9016631
src/form/form.js
@@ -59,7 +59,7 @@ function _validate($input, $form, regexp){
59
60
reg = regexp[reg];
61
}
62
- return new RegExp(reg).test(val) ? null : 'notMatch';
+ return new RegExp(reg).test(val) ? null : !$input.val().length ? 'empty' : 'notMatch';
63
}else if(!$input.val().length){
64
return 'empty';
65
}else{
0 commit comments