From edc00cff8d6d14a56b81b5781c760d5e02d4f886 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Fri, 2 Aug 2024 10:51:54 +0200 Subject: [PATCH] fix special char validation --- Frontend/patient_manager/lib/components/myPassInput.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }