From af781621bd373a156ef695c1cbe48895ad11c44b Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Mon, 17 Aug 2026 08:49:53 +0300 Subject: [PATCH] Literally magic --- frontend/src/ts/test/funbox/funbox-functions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/test/funbox/funbox-functions.ts b/frontend/src/ts/test/funbox/funbox-functions.ts index 7430c0b6bae6..8e1f47c2307f 100644 --- a/frontend/src/ts/test/funbox/funbox-functions.ts +++ b/frontend/src/ts/test/funbox/funbox-functions.ts @@ -348,7 +348,9 @@ const list: Partial> = { }, backwards: { alterText(word: string): string { - return word.split("").reverse().join(""); + // @ts-expect-error - v flag is only supported in es2024+, need to consider alternatives + const regex = /\p{RGI_Emoji}|\p{Any}/gv; + return (word.match(regex) ?? []).reverse().join(""); }, }, capitals: {