|
@@ -13,7 +13,7 @@ VxeUI.validators.add('ValidPassword', {
|
|
|
if ( !rule.required ) return;
|
|
if ( !rule.required ) return;
|
|
|
if ( !itemValue ) return new Error(`请输入密码`);
|
|
if ( !itemValue ) return new Error(`请输入密码`);
|
|
|
if ( !(
|
|
if ( !(
|
|
|
- itemValue.length > 8 &&
|
|
|
|
|
|
|
+ itemValue.length >= 8 &&
|
|
|
/\d/.test(itemValue) &&
|
|
/\d/.test(itemValue) &&
|
|
|
/[a-zA-Z]/.test(itemValue)
|
|
/[a-zA-Z]/.test(itemValue)
|
|
|
) ) {
|
|
) ) {
|