2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 14:15:25 +00:00

Add free-spacing flag to the emoji regex (#100)

This commit is contained in:
Aziz Kasymov
2019-02-03 21:16:50 +05:00
committed by GingerPlusPlus
parent c0d0145197
commit 7aa5c3ff37

View File

@@ -18,7 +18,7 @@ const entry = group => group.username
? `- @${group.username}`
: `- <a href="${group.link}">${escapeHtml(group.title)}</a>`;
const emojiRegex = XRegExp.tag('g')`
const emojiRegex = XRegExp.tag('gx')`
[\uE000-\uF8FF]|
\uD83C[\uDC00-\uDFFF]|
\uD83D[\uDC00-\uDFFF]|