@@ -91,6 +91,13 @@ module.exports = {
return false;
}
break;
+ case 'bank':
+ var reg = /^[1-9]\d{9,29}$/;
+ if (!reg.test(data[rule[i].name])) {
+ this.error = rule[i].errorMsg;
+ return false;
+ }
+ break;
case 'phoneno':
var reg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
if (data[rule[i].name]) {