diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js index edcb8242..49438a4b 100644 --- a/src/components/emoji_picker/emoji_picker.js +++ b/src/components/emoji_picker/emoji_picker.js @@ -173,8 +173,8 @@ const EmojiPicker = { const emojiPacks = [] customEmojis.forEach((pack, id) => { emojiPacks.push({ - id: id.substring(5), - text: startCase(id.substring(5)), + id: id.replace(/^pack:/, ''), + text: startCase(id.replace(/^pack:/, '')), first: pack[0], emojis: this.filterByKeyword(pack) })