Don't search across as many fields (see #1326)

This commit is contained in:
Steve Purcell 2014-08-02 12:04:16 +01:00
parent 93e06adf34
commit 48cd118f8e

View file

@ -35,7 +35,7 @@
"downloads", "fetcher", "recipeURL", "packageURL", "sourceURL", "oldNames"].map(function(p) {
this[p] = data[p];
}.bind(this));
this._searchText = _([data.name, data.description, data.source, data.sourceURL])
this._searchText = _([data.name, data.description, data.version])
.compact().valueOf().join(' ').toLowerCase();
this.readmeURL = "/packages/" + data.name + "-readme.txt";
this.matchesTerm = function(term) {