Merge pull request #1138 from thelounge/xpaw/fix-emoji-autocomplete
Allow autocompleting full emoji short names
This commit is contained in:
commit
783a8567e2
@ -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));
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user