diff --git a/src/util/Util.js b/src/util/Util.js index f9aaf21c2..8e6743d9f 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -244,9 +244,9 @@ class Util { static parseEmoji(text) { if (text.includes('%')) text = decodeURIComponent(text); if (!text.includes(':')) return { animated: false, name: text, id: null }; - const m = text.match(/?/); + const m = text.match(/?/); if (!m) return null; - return { animated: Boolean(m[1]), name: m[2], id: m[3] }; + return { animated: Boolean(m[1]), name: m[2], id: m[3] || null }; } /**