Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6907 from matrix-org/t3chguy/fix/19304
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Oct 7, 2021
2 parents 675c587 + 8ee6a08 commit ad1eb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad1eb54

Please sign in to comment.