kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'regional-flag-fix' into 'main'
regional flag fix See merge request soapbox-pub/soapbox!3075environments/review-hidden-blo-1okx3i/deployments/4725
commit
d67b10a376
|
@ -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