From 6017e4391f7aaa8da8c005969dbb5fbd286c2157 Mon Sep 17 00:00:00 2001 From: animegrafmays Date: Sat, 20 Jul 2024 11:57:34 -0400 Subject: [PATCH] finally once and for all no foolin fix the flag reactions that have been broken for over five months --- src/schemas/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/utils.ts b/src/schemas/utils.ts index aabf3d83e..7d46b664c 100644 --- a/src/schemas/utils.ts +++ b/src/schemas/utils.ts @@ -20,7 +20,7 @@ function filteredArray(schema: T) { } /** Validates the string as an emoji. */ -const emojiSchema = z.string().refine((v) => /\p{Extended_Pictographic}/u.test(v)); +const emojiSchema = z.string().refine((v) => /\p{Extended_Pictographic}|[\u{1F1E6}-\u{1F1FF}]{2}/u.test(v)); /** Map a list of CustomEmoji to their shortcodes. */ function makeCustomEmojiMap(customEmojis: CustomEmoji[]) {