aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-05 22:38:44 -0700
committerredmatrix <git@macgirvin.com>2016-06-05 22:38:44 -0700
commitc0d80a58284baa7dc4ac05b5628a43e8743ac4f0 (patch)
tree3a28517013a05a79ee3bc8958015a893e91c5a7f
parentadecd2960e2b7cdca8a23e5c4e8d80645407b513 (diff)
downloadvolse-hubzilla-c0d80a58284baa7dc4ac05b5628a43e8743ac4f0.tar.gz
volse-hubzilla-c0d80a58284baa7dc4ac05b5628a43e8743ac4f0.tar.bz2
volse-hubzilla-c0d80a58284baa7dc4ac05b5628a43e8743ac4f0.zip
adjust the autocomplete regex slightly to account for emoji names
-rw-r--r--view/js/autocomplete.js2
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; },