kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
finally once and for all no foolin fix the flag reactions that have been broken for over five months
rodzic
29f035322a
commit
6017e4391f
|
@ -20,7 +20,7 @@ function 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. */
|
||||
function makeCustomEmojiMap(customEmojis: CustomEmoji[]) {
|
||||
|
|
Ładowanie…
Reference in New Issue