Replace pack with regex instead of assuming "pack:"
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
David 2022-08-03 07:08:00 -07:00
parent 368572fbd0
commit f85841aa80

View file

@ -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)
})