diff options
author | RedMatrix <info@friendica.com> | 2014-12-27 09:24:47 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-12-27 09:24:47 +1100 |
commit | bfc0b00d93c00bbdf02013165041f970ef520841 (patch) | |
tree | f7b8d4303cf5dc3d44c64c6cd14fe2ef17fc55a1 /view | |
parent | 0130fb077fbea06c0abd6e395adccddcd08a0c99 (diff) | |
parent | a02d155f79b57ff8e9b46f032114be8ff6812d18 (diff) | |
download | volse-hubzilla-bfc0b00d93c00bbdf02013165041f970ef520841.tar.gz volse-hubzilla-bfc0b00d93c00bbdf02013165041f970ef520841.tar.bz2 volse-hubzilla-bfc0b00d93c00bbdf02013165041f970ef520841.zip |
Merge pull request #766 from pafcu/autocomplete
Fix regex in contact autocomplete
Diffstat (limited to 'view')
-rw-r--r-- | view/js/autocomplete.js | 3 |
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, |