From bc40171d6070650f1e75fac35f4754501c90eaa0 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 30 Dec 2023 15:09:35 +0800 Subject: [PATCH] fix regex --- src/CONST.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CONST.ts b/src/CONST.ts index abba27b0c33b..31ed29469aeb 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -853,7 +853,7 @@ const CONST = { // It's copied here so that the same regex pattern can be used in form validations to be consistent with the server. VALIDATE_FOR_HTML_TAG_REGEX: /<([^>\s]+)(?:[^>]*?)>/g, - VALIDATE_FOR_LEADINGSPACES_HTML_TAG_REGEX: /<([\s]+[\s\w~!@#$%^&*(){}[\];':"`|?.,/\\+\-=<]+.*[\s]*)>/g, + VALIDATE_FOR_LEADINGSPACES_HTML_TAG_REGEX: /<([\s]+.+[\s]*)>/g, WHITELISTED_TAGS: [/<>/, /< >/, /<->/, /<-->/, /
/, //],