fix error
This commit is contained in:
parent
cf9002948d
commit
812b500052
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ export default {
|
||||||
if (code.indexOf(":") !== 0) return code;
|
if (code.indexOf(":") !== 0) return code;
|
||||||
let k = code.replaceAll(":", '').trim();
|
let k = code.replaceAll(":", '').trim();
|
||||||
let emoji = zulip_emoji.name_to_codepoint[k];
|
let emoji = zulip_emoji.name_to_codepoint[k];
|
||||||
console.log(k, emoji, parseInt(emoji,16), String.fromCodePoint(parseInt("0x"+emoji)))
|
if (!emoji) return code;
|
||||||
|
// console.log(k, emoji, parseInt(emoji,16), String.fromCodePoint(parseInt("0x"+emoji)))
|
||||||
return String.fromCodePoint(parseInt("0x"+emoji))
|
return String.fromCodePoint(parseInt("0x"+emoji))
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue