From d0af773ae91cfb0431864989ffe121abfc7f0f49 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Tue, 1 Jul 2025 12:41:53 +0200 Subject: [PATCH] fix(emoji): map multi-unicode emoji properly --- quartz/util/emoji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/util/emoji.ts b/quartz/util/emoji.ts index 4d3434f60..28f0f1f3a 100644 --- a/quartz/util/emoji.ts +++ b/quartz/util/emoji.ts @@ -37,7 +37,7 @@ export async function loadEmoji(code: string) { emojimap = data } - const name = emojimap.codePointToName[`U+${code.toUpperCase()}`] + const name = emojimap.codePointToName[`U+${code.toUpperCase().replaceAll("-", "-U+")}`] if (!name) throw new Error(`codepoint ${code} not found in map`) const b64 = emojimap.nameToBase64[name]