From e030cd6cb501fc463e9e4c78f1d8823b16db8c99 Mon Sep 17 00:00:00 2001 From: Aashish <59650752+Aashish-png@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:02:12 +0530 Subject: [PATCH] Update open-text-question.tsx safer, lookbehind-free equivalent: --- .../src/components/questions/open-text-question.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/surveys/src/components/questions/open-text-question.tsx b/packages/surveys/src/components/questions/open-text-question.tsx index 97eb881e05..39a159209a 100644 --- a/packages/surveys/src/components/questions/open-text-question.tsx +++ b/packages/surveys/src/components/questions/open-text-question.tsx @@ -124,11 +124,8 @@ export function OpenTextQuestion({ }} className="fb-border-border placeholder:fb-text-placeholder fb-text-subheading focus:fb-border-brand fb-bg-input-bg fb-rounded-custom fb-block fb-w-full fb-border fb-p-2 fb-shadow-sm focus:fb-outline-none focus:fb-ring-0 sm:fb-text-sm" pattern={ - question.inputType === "phone" - ? "^[+]?\\d(?:[\\d\\-\\s]{7,}\\d)?$" - : question.inputType === "email" - ? "^(?!.*[.]{2})(?![.])[A-Za-z0-9._%+-]+(?