From 560e97156463b8a9e7f7ec34366761b2358ea064 Mon Sep 17 00:00:00 2001 From: mohitb35 <44917347+mohitb35@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:29:12 +0530 Subject: [PATCH] fix: fixes overly permissive regexp range --- src/Donations/Components/ContactsForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Donations/Components/ContactsForm.tsx b/src/Donations/Components/ContactsForm.tsx index 9a527d06..118420a9 100644 --- a/src/Donations/Components/ContactsForm.tsx +++ b/src/Donations/Components/ContactsForm.tsx @@ -324,7 +324,7 @@ function ContactsForm(): ReactElement { rules={{ required: t("addressRequired"), pattern: { - value: /^[\p{L}\p{N}\sß.,#-/]+$/u, + value: /^[\p{L}\p{N}\sß.,#/-]+$/u, message: t("addressInvalid"), }, }}