From de27cb80c35bfc5409a2d394ae05360e45abd78f Mon Sep 17 00:00:00 2001 From: chenfang Date: Mon, 22 Apr 2024 10:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/validator.ts b/src/utils/validator.ts index 4bb0e51d0..3588e20a2 100644 --- a/src/utils/validator.ts +++ b/src/utils/validator.ts @@ -21,7 +21,7 @@ export function validateCode(rule, value, callback) { //校验邮箱 export function validateEmail(rule, value, callback) { if (value) { - const mailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/ + const mailReg = /^([a-zA-Z0-9_-]+.)+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-]+.)+/ if (mailReg.test(value)) { callback() } else {