From 17c3dbc57da235254a46780e72e1b2502b11c339 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 23 Jun 2015 16:37:32 +0200 Subject: js: packages: Also match against description and location. * js/controller/packages.js (filteredPackages): Match search expression against "description" and "location" fields in addition to "name" and "synopsis". --- js/controller/packages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/controller/packages.js b/js/controller/packages.js index 5cc7f85..db401b6 100644 --- a/js/controller/packages.js +++ b/js/controller/packages.js @@ -38,7 +38,9 @@ return packages.filter(function(package) { return regexp.test(package.name) || - regexp.test(package.synopsis); + regexp.test(package.synopsis) || + regexp.test(package.description) || + regexp.test(package.location); }); }).toProperty([]); -- cgit v1.2.3