Replace pack with regex instead of assuming "pack:"
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This commit is contained in:
parent
368572fbd0
commit
f85841aa80
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ const EmojiPicker = {
|
||||||
const emojiPacks = []
|
const emojiPacks = []
|
||||||
customEmojis.forEach((pack, id) => {
|
customEmojis.forEach((pack, id) => {
|
||||||
emojiPacks.push({
|
emojiPacks.push({
|
||||||
id: id.substring(5),
|
id: id.replace(/^pack:/, ''),
|
||||||
text: startCase(id.substring(5)),
|
text: startCase(id.replace(/^pack:/, '')),
|
||||||
first: pack[0],
|
first: pack[0],
|
||||||
emojis: this.filterByKeyword(pack)
|
emojis: this.filterByKeyword(pack)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue