enhance(client): show Unicode emoji tooltip with its name (#9399)
* enhance(client): show Unicode emoji tooltip with its name * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: tamaina <tamaina@hotmail.co.jp> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
ef1224118c
commit
decde50c86
3 changed files with 30 additions and 8 deletions
|
|
@ -11,3 +11,7 @@ export type UnicodeEmojiDef = {
|
|||
import _emojilist from '../emojilist.json';
|
||||
|
||||
export const emojilist = _emojilist as UnicodeEmojiDef[];
|
||||
|
||||
export function getEmojiName(char: string): string | undefined {
|
||||
return emojilist.find(emo => emo.char === char)?.name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue