Skip to content

Commit 74606a1

Browse files
authored
fix(emoji): map multi-unicode emoji properly (#2037)
* fix(emoji): map multi-unicode emoji properly * Regenerated emoji map
1 parent 930eb1c commit 74606a1

File tree

2 files changed

+1911
-1911
lines changed

2 files changed

+1911
-1911
lines changed

quartz/util/emoji.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function loadEmoji(code: string) {
3737
emojimap = data
3838
}
3939

40-
const name = emojimap.codePointToName[`U+${code.toUpperCase()}`]
40+
const name = emojimap.codePointToName[`${code.toUpperCase()}`]
4141
if (!name) throw new Error(`codepoint ${code} not found in map`)
4242

4343
const b64 = emojimap.nameToBase64[name]

0 commit comments

Comments
 (0)