diff --git a/Frontend/patient_manager/lib/components/myPassInput.dart b/Frontend/patient_manager/lib/components/myPassInput.dart index f618e221..b208d489 100644 --- a/Frontend/patient_manager/lib/components/myPassInput.dart +++ b/Frontend/patient_manager/lib/components/myPassInput.dart @@ -69,7 +69,7 @@ class _MyPassFieldState extends State { } // 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'; }