aboutsummaryrefslogtreecommitdiffstats
path: root/js/fk.autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/fk.autocomplete.js')
-rw-r--r--js/fk.autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js
index 8bac41936..763ca354d 100644
--- a/js/fk.autocomplete.js
+++ b/js/fk.autocomplete.js
@@ -151,7 +151,7 @@ ACPopup.prototype.onkey = function(event){
}
function ContactAutocomplete(element,backend_url){
- this.pattern=/@([^ \n]+)$/;
+ this.pattern=/@(\!*)([^ \n]+)$/;
this.popup=null;
var that = this;
@@ -170,7 +170,7 @@ function ContactAutocomplete(element,backend_url){
if (that.popup===null){
that.popup = new ACPopup(this, backend_url);
}
- if (that.popup.ready && match[1]!==that.popup.searchText) that.popup.search(match[1]);
+ if (that.popup.ready && match[2]!==that.popup.searchText) that.popup.search(match[2]);
if (!that.popup.ready) that.popup=null;
} else {