mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Improve emoji shortcodes generated from annotations
This commit is contained in:
parent
b86d646fa7
commit
cadc9d2990
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ export const EMOJI: IEmoji[] = EMOJIBASE.map((emojiData: Omit<IEmoji, "shortcode
|
|||
// If there's ever a gap in shortcode coverage, we fudge it by
|
||||
// filling it in with the emoji's CLDR annotation
|
||||
const shortcodeData = SHORTCODES[emojiData.hexcode] ??
|
||||
[emojiData.annotation.toLowerCase().replace(/ /g, "_")];
|
||||
[emojiData.annotation.toLowerCase().replace(/\W+/g, "_")];
|
||||
|
||||
const emoji: IEmoji = {
|
||||
...emojiData,
|
||||
|
|
Loading…
Reference in a new issue