diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-08-07 08:07:16 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-08-07 08:07:16 -0400 |
commit | b83bdf040812a229471c5cc9c27066a5e4aa7227 (patch) | |
tree | 08048c78475e463b6e65dc33819401c92b92e36f /js | |
parent | 04bd443162b063bce43f602f26dc5ace24e6a6f8 (diff) |
js: Apply search terms to package synopsis.
* js/guix-web.js (guix.controller.doSearch): Test regexp against package
synopsis.
Diffstat (limited to 'js')
-rw-r--r-- | js/guix-web.js | 3 |
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); })); }; }; |