Recognize 👍
This commit is contained in:
parent
6e8e33f2c5
commit
dcb0c789d2
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
function transformMessageText(message) {
|
||||
return message
|
||||
.split(/(?<=:|\W|^)(:[a-z0-9_-]+:)(?=:|\W|$)/)
|
||||
.split(/(?<=:|\W|^)(:[a-z0-9_+-]+:)(?=:|\W|$)/)
|
||||
.map((x, i) => i % 2
|
||||
? emoji[x.slice(1, -1)] || x
|
||||
: x)
|
||||
|
|
Loading…
Reference in a new issue