mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-23 21:04:07 -06:00
fix(emoji): map multi-unicode emoji properly
This commit is contained in:
parent
52a5196f38
commit
d0af773ae9
@ -37,7 +37,7 @@ export async function loadEmoji(code: string) {
|
|||||||
emojimap = data
|
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`)
|
if (!name) throw new Error(`codepoint ${code} not found in map`)
|
||||||
|
|
||||||
const b64 = emojimap.nameToBase64[name]
|
const b64 = emojimap.nameToBase64[name]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user