Allow autocompleting full emoji short names

This commit is contained in:
Pavel Djundik 2017-05-05 21:08:41 +03:00
parent 328c61920e
commit 9766c3e254

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