From 2318812f7f2229e0934a28967b406c4ef7f58073 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Thu, 4 Jan 2018 20:29:32 +0100 Subject: [PATCH] fix: allow the Util#parseEmoji regex to match emoji identifier (#2229) --- 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 1d6f2d17be92..c1020ec103dc 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -78,7 +78,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] }; }