From 1ab3a196dec6f1ad3d5cc1e637a392205a890d9d Mon Sep 17 00:00:00 2001 From: JayChou Date: Sun, 10 Nov 2024 18:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/loginmini/MiniRegister4shenbaoren.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4shenbaoren.vue b/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4shenbaoren.vue index e3247dc..903c8e3 100644 --- a/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4shenbaoren.vue +++ b/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4shenbaoren.vue @@ -246,7 +246,7 @@ return; } //包含字母(大小写)、数字以及特殊字符,并且有一定的长度要求,至少 8 位 - const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$%^&+=!])(?=.{8,})$/; + const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?])[A-Za-z\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{8,}$/; if (!passwordRegex.test(formData.password)) { createMessage.warn(t('sys.login.passwordPlaceholderNotReg')); return;