master
hs 2026-07-06 11:14:29 +08:00
parent fe973c0cfd
commit 0d47f80ee4
3 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ class _ForgotPwdPageState extends State<ForgotPwdPage> {
final hasUpperCase = RegExp(r'[A-Z]');
final hasLowerCase = RegExp(r'[a-z]');
final hasNumber = RegExp(r'[0-9]');
final hasSpecialChar = RegExp(r'[!@#\$%\^&\*\(\)_\+\-=\[\]\{\};:"\\|,.<>\/\?~`]');
final hasSpecialChar = RegExp(r'[!@#&*]'); //
return hasUpperCase.hasMatch(password) &&
hasLowerCase.hasMatch(password) &&
hasNumber.hasMatch(password) &&

View File

@ -118,7 +118,7 @@ class _MineSetPwdPageState extends State<MineSetPwdPage> {
final hasUpperCase = RegExp(r'[A-Z]');
final hasLowerCase = RegExp(r'[a-z]');
final hasNumber = RegExp(r'[0-9]');
final hasSpecialChar = RegExp(r'[!@#\$%\^&\*\(\)_\+\-=\[\]\{\};:"\\|,.<>\/\?~`]');
final hasSpecialChar = RegExp(r'[!@#&*]'); //
return hasUpperCase.hasMatch(password) &&
hasLowerCase.hasMatch(password) &&
hasNumber.hasMatch(password) &&

View File

@ -52,7 +52,7 @@ class _RegisterPageState extends State<RegisterPage> {
final hasUpperCase = RegExp(r'[A-Z]');
final hasLowerCase = RegExp(r'[a-z]');
final hasNumber = RegExp(r'[0-9]');
final hasSpecialChar = RegExp(r'[!@#\$%\^&\*\(\)_\+\-=\[\]\{\};:"\\|,.<>\/\?~`]');
final hasSpecialChar = RegExp(r'[!@#&*]'); //
return hasUpperCase.hasMatch(password) &&
hasLowerCase.hasMatch(password) &&
hasNumber.hasMatch(password) &&