From f62fa053890105aa5c2024bb81812127c05ec90b Mon Sep 17 00:00:00 2001 From: Isabella Date: Sat, 13 Jan 2018 11:22:23 -0600 Subject: [PATCH] fix(Message#addReaction): incorrect regex (#2247) --- src/util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Util.js b/src/util/Util.js index 393cedf02..2be7c5658 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -76,7 +76,7 @@ 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] }; }