forked from github/quartz
fix(emoji): map multi-unicode emoji properly (#2037)
* fix(emoji): map multi-unicode emoji properly * Regenerated emoji map
This commit is contained in:
1 parent
930eb1c413
commit
74606a1bd3
2 files changed
+1911
-1911
No files matched your search
@@ -37,7 +37,7 @@ export async function loadEmoji(code: string) {
|
||||
emojimap = data
|
||||
}
|
||||
|
||||
const name = emojimap.codePointToName[`U+${code.toUpperCase()}`]
|
||||
const name = emojimap.codePointToName[`${code.toUpperCase()}`]
|
||||
if (!name) throw new Error(`codepoint ${code} not found in map`)
|
||||
|
||||
const b64 = emojimap.nameToBase64[name]
|
||||
|
||||
+1910
-1910
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user