Fix regex in contact autocomplete

This commit is contained in:
Stefan Parviainen 2014-12-24 08:30:35 +01:00
parent b6bbb8e4ad
commit a02d155f79

View File

@ -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,