Merge pull request #1138 from thelounge/xpaw/fix-emoji-autocomplete

Allow autocompleting full emoji short names
This commit is contained in:
Jérémie Astori 2017-05-05 22:03:32 +02:00 committed by GitHub
commit 783a8567e2

View File

@ -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));
},