(js) Fix autocompletion of mail tags

This commit is contained in:
Francis Lachapelle
2015-09-08 15:29:49 -04:00
parent 370be4f835
commit b8b45eda75
2 changed files with 5 additions and 3 deletions
@@ -88,8 +88,7 @@
Message.filterTags = function(query) {
var re = new RegExp(query, 'i');
return _.filter(_.keys(Message.$tags), function(tag) {
var value = Message.$tags[tag];
return value[0].search(re) != -1;
return tag.search(re) != -1;
});
};