From d357ff8970ecf27ccd42fec2b7d397bf2bcafb10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Wed, 20 Nov 2024 19:25:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(login):=20=E4=BC=98=E5=8C=96=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E9=A1=B5=E9=9D=A2=E5=AF=86=E7=A0=81=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 RegisterView 中的 ValidatorHelper.isPassword 调用 - 更改 YWXValidatorHelper.isPwd 方法的正则表达式,支持更多特殊字符 - 删除 ValidatorHelper 中的 isPassword 方法 --- src/main/ets/utils/ValidatorHelper.ets | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/ets/utils/ValidatorHelper.ets b/src/main/ets/utils/ValidatorHelper.ets index dbac81a..3ddca4a 100644 --- a/src/main/ets/utils/ValidatorHelper.ets +++ b/src/main/ets/utils/ValidatorHelper.ets @@ -34,14 +34,5 @@ export class ValidatorHelper { return regexp.test(idcardNum) } - /** - * 是否为密码 - * @param password - * @returns - */ - public static isPassword(password: string) { - let regexp: RegExp = new RegExp('(^(?=.*[a-zA-Z])(?=.*\\d)[A-Za-z\\d!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~]{8,12}$)'); - return regexp.test(password) - } }