From 4a09187e83da7f2622ea32bd2d89b86ab661a7f8 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 20 Jan 2025 16:38:14 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=94=A8=E6=88=B7=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue b/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue index 6b899f6400..0da1eddb8c 100644 --- a/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue +++ b/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue @@ -22,7 +22,7 @@ const validatePwd = (_: any, value: any, callback: any) => { callback(new Error(t('system.be_the_same'))) } const pattern = - /^.*(?=.{8,20})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/])[a-zA-Z0-9~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/]*$/ + /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/])[a-zA-Z0-9~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/]{8,20}$/ const regep = new RegExp(pattern) if (!regep.test(value)) { const msg = t('user.pwd_pattern_error')