adjust the autocomplete regex slightly to account for emoji names
This commit is contained in:
parent
adecd2960e
commit
c0d80a5828
@ -183,7 +183,7 @@ function string2bb(element) {
|
||||
};
|
||||
|
||||
smilies = {
|
||||
match: /(^|\s)(:[a-z]{2,})$/,
|
||||
match: /(^|\s)(:[a-z_:]{2,})$/,
|
||||
index: 2,
|
||||
search: function(term, callback) { $.getJSON('/smilies/json').done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); },
|
||||
template: function(item) { return item.icon + item.text; },
|
||||
|
Reference in New Issue
Block a user