entity normalizer: add tooltip text to emojis
This commit is contained in:
parent
23c4c0c758
commit
00ad97fcfa
|
@ -171,7 +171,7 @@ export const addEmojis = (string, emojis) => {
|
||||||
return emojis.reduce((acc, emoji) => {
|
return emojis.reduce((acc, emoji) => {
|
||||||
return acc.replace(
|
return acc.replace(
|
||||||
new RegExp(`:${emoji.shortcode}:`, 'g'),
|
new RegExp(`:${emoji.shortcode}:`, 'g'),
|
||||||
`<img src='${emoji.url}' alt='${emoji.shortcode}' class='emoji' />`
|
`<img src='${emoji.url}' alt='${emoji.shortcode}' title='${emoji.shortcode}' class='emoji' />`
|
||||||
)
|
)
|
||||||
}, string)
|
}, string)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue