aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-31 09:26:58 +0200
committerMario Vavti <mario@mariovavti.com>2018-03-31 09:26:58 +0200
commit6433ce70a19be8c57edbc72f8df3a4c7ef52f389 (patch)
treecc0bc0abe91a2facd379097ade99439498da7b2d /view/js/autocomplete.js
parent6822415ee2efd4e2d3e5458c36cd5f582887969a (diff)
parent1c3e6697615b70d2528856b6c8e69962a14763dc (diff)
downloadvolse-hubzilla-6433ce70a19be8c57edbc72f8df3a4c7ef52f389.tar.gz
volse-hubzilla-6433ce70a19be8c57edbc72f8df3a4c7ef52f389.tar.bz2
volse-hubzilla-6433ce70a19be8c57edbc72f8df3a4c7ef52f389.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'view/js/autocomplete.js')
-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 f7570523e..7a1a7673d 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -210,7 +210,7 @@ function string2bb(element) {
tags = {
match: /(^|\s)(\#)([^ \n]{2,})$/,
index: 3,
- search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); },
+ search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.toLowerCase().indexOf(term.toLowerCase()) === 0 ? entry : null; })); }); },
replace: function(item) { return "$1$2" + item.text + ' '; },
context: function(text) { return text.toLowerCase(); },
template: tag_format