From 9766c3e254dc7919e17d9f209317f01dc9910a2a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 5 May 2017 21:08:41 +0300 Subject: [PATCH] Allow autocompleting full emoji short names --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index a2193c6c..abac9904 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -48,7 +48,7 @@ $(function() { const emojiStrategy = { id: "emoji", - match: /\B:([-+\w]*)$/, + match: /\B:([-+\w]*):?$/, search(term, callback) { callback(Object.keys(emojiMap).filter(name => name.indexOf(term) === 0)); },