fix special char validation

This commit is contained in:
2024-08-02 10:51:54 +02:00
parent 5054fa242b
commit edc00cff8d

View File

@@ -69,7 +69,7 @@ class _MyPassFieldState extends State<MyPassField> {
}
// Contains at least one special character
if (!text.contains(RegExp(r'!@#$%^&*')) && !widget.signIn) {
if (!text.contains(RegExp(r'[!@#$%^&*]')) && !widget.signIn) {
_errorMessage += '• Special character is missing - !@#\$%^&*\n';
}