summaryrefslogtreecommitdiff
path: root/js/controller
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-06-23 16:37:32 +0200
committerDavid Thompson <dthompson@vistahigherlearning.com>2015-06-23 16:37:12 -0400
commit17c3dbc57da235254a46780e72e1b2502b11c339 (patch)
tree6a833b525867c8b485372084b6956d25ccc50a84 /js/controller
parentaad72327d17a1479f586af3cdb7123ffec2d9719 (diff)
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".
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/packages.js4
1 files changed, 3 insertions, 1 deletions
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([]);