finally once and for all no foolin fix the flag reactions that have been broken for over five months
This commit is contained in:
committed by
marcin mikołajczak
parent
b89c45c606
commit
50c6a34134
@ -19,7 +19,7 @@ const filteredArray = <T extends z.ZodTypeAny>(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. */
|
||||
const makeCustomEmojiMap = (customEmojis: CustomEmoji[]) =>
|
||||
|
||||
Reference in New Issue
Block a user