aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-24 08:30:35 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-24 08:30:35 +0100
commita02d155f79b57ff8e9b46f032114be8ff6812d18 (patch)
tree8420676559c976b60ef550c4b6fbbd183b971899 /view/js/autocomplete.js
parentb6bbb8e4ad04ba834ae613265473d838ff99ab52 (diff)
downloadvolse-hubzilla-a02d155f79b57ff8e9b46f032114be8ff6812d18.tar.gz
volse-hubzilla-a02d155f79b57ff8e9b46f032114be8ff6812d18.tar.bz2
volse-hubzilla-a02d155f79b57ff8e9b46f032114be8ff6812d18.zip
Fix regex in contact autocomplete
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index ba71bb2f5..7c3145769 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -7,7 +7,6 @@ function mysearch(term, callback, backend_url) {
var postdata = {
start:0,
count:100,
- //search:term.substring(1),
search:term,
type:'c',
}
@@ -40,7 +39,7 @@ function replace(item) {
// Autocomplete contacts
contacts = {
- match: /(^|\s)(@!?)(\w{2,})$/,
+ match: /(^|\s)(@\!*)([^ \n]+)$/,
index: 3,
search: function(term, callback) { mysearch(term, callback, backend_url); },
replace: replace,