From 1728c3b31728ef6c25c0d4b5dc078b6478e214f7 Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Fri, 15 Nov 2024 11:52:58 +0530 Subject: [PATCH] updated regex --- src/containers/Flow/Flow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/Flow/Flow.tsx b/src/containers/Flow/Flow.tsx index 1ddc5eaa1..41bfcf4a4 100644 --- a/src/containers/Flow/Flow.tsx +++ b/src/containers/Flow/Flow.tsx @@ -140,7 +140,7 @@ export const Flow = () => { } }; - const regex = /^\s*[^-!$%^&*()+|~=`{}[\]:";'<>?,./]+\s*(,\s*[^-!$%^&*()+|~=`{}[\]:";'<>?,./]+\s*)*$/g; + const regex = /^\s*[^-!$%^&*()+|~=`{}[\]:";'<>?,./\s]+\s*(,\s*[^-!$%^&*()+|~=`{}[\]:";'<>?,./\s]+\s*)*$/g; const FormSchema = Yup.object().shape({ name: Yup.string().required(t('Name is required.')),