master
parent
fe973c0cfd
commit
0d47f80ee4
|
|
@ -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) &&
|
||||
|
|
|
|||
|
|
@ -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) &&
|
||||
|
|
|
|||
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue