fix special char validation
This commit is contained in:
parent
5054fa242b
commit
edc00cff8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue