adjust the autocomplete regex slightly to account for emoji names

This commit is contained in:
redmatrix 2016-06-05 22:38:44 -07:00
parent adecd2960e
commit c0d80a5828

View File

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