From ec4618f394eb432d82004138123660122dd32764 Mon Sep 17 00:00:00 2001 From: tungct4 Date: Thu, 14 May 2026 16:22:37 +0800 Subject: [PATCH] [MOL-20841][TC]Remove lookbehind assertions for older devices compatibility --- src/context-providers/yup/custom-conditions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context-providers/yup/custom-conditions/index.ts b/src/context-providers/yup/custom-conditions/index.ts index 550296f5f..056271e78 100644 --- a/src/context-providers/yup/custom-conditions/index.ts +++ b/src/context-providers/yup/custom-conditions/index.ts @@ -45,7 +45,7 @@ YupHelper.addCondition("string", "whitespace", (value: string, whitespace: boole if (typeof whitespace === "object" && !whitespace.noLeadingOrTrailingWhitespace) { return /\S/.test(value); } - return /^(?!\s+$)(?!\s).*(? { if (!values?.length) return true;