Merge pull request #6907 from matrix-org/t3chguy/fix/19304

pull/21833/head
Michael Telatynski 2021-10-07 11:24:59 +01:00 committed by GitHub
commit ad1eb54b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,