Make unicode emoji phrases match with _

This commit is contained in:
Tusooa Zhu 2022-08-31 16:03:15 -04:00
parent de2c7b760f
commit 0445d7c882
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -190,7 +190,7 @@ const instance = {
const values = await res.json() const values = await res.json()
const emoji = Object.keys(values).reduce((res, groupId) => { const emoji = Object.keys(values).reduce((res, groupId) => {
res[groupId] = values[groupId].map(e => ({ res[groupId] = values[groupId].map(e => ({
displayText: e.name, displayText: e.slug,
imageUrl: false, imageUrl: false,
replacement: e.emoji replacement: e.emoji
})) }))