diff options
author | redmatrix <git@macgirvin.com> | 2016-06-05 22:38:44 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-06-05 22:38:44 -0700 |
commit | c0d80a58284baa7dc4ac05b5628a43e8743ac4f0 (patch) | |
tree | 3a28517013a05a79ee3bc8958015a893e91c5a7f /view/js/autocomplete.js | |
parent | adecd2960e2b7cdca8a23e5c4e8d80645407b513 (diff) | |
download | volse-hubzilla-c0d80a58284baa7dc4ac05b5628a43e8743ac4f0.tar.gz volse-hubzilla-c0d80a58284baa7dc4ac05b5628a43e8743ac4f0.tar.bz2 volse-hubzilla-c0d80a58284baa7dc4ac05b5628a43e8743ac4f0.zip |
adjust the autocomplete regex slightly to account for emoji names
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r-- | view/js/autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 33d825b55..59a9ed355 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -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; }, |