Merge branch 'actions' into fork
This commit is contained in:
commit
f9f6e79a3a
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ const PinnedHostsPicker: React.FC<IPinnedHostsPicker> = ({ host: activeHost }) =
|
||||||
if (!pinnedHosts.length) return null;
|
if (!pinnedHosts.length) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HStack className='mb-4' space={2}>
|
<HStack className='mb-4 black:mx-2' space={2}>
|
||||||
{pinnedHosts.map((host) => (
|
{pinnedHosts.map((host) => (
|
||||||
<Button
|
<Button
|
||||||
key={host}
|
key={host}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const filteredArray = <T extends z.ZodTypeAny>(schema: T) =>
|
||||||
));
|
));
|
||||||
|
|
||||||
/** Validates the string as an emoji. */
|
/** 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. */
|
/** Map a list of CustomEmoji to their shortcodes. */
|
||||||
const makeCustomEmojiMap = (customEmojis: CustomEmoji[]) =>
|
const makeCustomEmojiMap = (customEmojis: CustomEmoji[]) =>
|
||||||
|
|
Loading…
Reference in a new issue