summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-08-07 08:07:16 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-08-07 08:07:16 -0400
commitb83bdf040812a229471c5cc9c27066a5e4aa7227 (patch)
tree08048c78475e463b6e65dc33819401c92b92e36f
parent04bd443162b063bce43f602f26dc5ace24e6a6f8 (diff)
js: Apply search terms to package synopsis.
* js/guix-web.js (guix.controller.doSearch): Test regexp against package synopsis.
-rw-r--r--js/guix-web.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/guix-web.js b/js/guix-web.js
index ae50a48..62a8779 100644
--- a/js/guix-web.js
+++ b/js/guix-web.js
@@ -33,7 +33,8 @@ guix.controller = function() {
var regexp = new RegExp(this.searchTerm());
this.visiblePackages(this.packages().filter(function(package) {
- return regexp.test(package.name);
+ return regexp.test(package.name) ||
+ regexp.test(package.synopsis);
}));
};
};