mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Merge pull request #1138 from thelounge/xpaw/fix-emoji-autocomplete
Allow autocompleting full emoji short names
This commit is contained in:
commit
783a8567e2
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ $(function() {
|
||||||
|
|
||||||
const emojiStrategy = {
|
const emojiStrategy = {
|
||||||
id: "emoji",
|
id: "emoji",
|
||||||
match: /\B:([-+\w]*)$/,
|
match: /\B:([-+\w]*):?$/,
|
||||||
search(term, callback) {
|
search(term, callback) {
|
||||||
callback(Object.keys(emojiMap).filter(name => name.indexOf(term) === 0));
|
callback(Object.keys(emojiMap).filter(name => name.indexOf(term) === 0));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue