From dcb0c789d22e13e82060b087c138c70dfadcc6e6 Mon Sep 17 00:00:00 2001 From: Midgard Date: Mon, 20 Jun 2022 14:16:35 +0200 Subject: [PATCH] Recognize :+1: --- js/view/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/view/messages.js b/js/view/messages.js index 228095b..b62b658 100644 --- a/js/view/messages.js +++ b/js/view/messages.js @@ -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)