From b83bdf040812a229471c5cc9c27066a5e4aa7227 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 7 Aug 2014 08:07:16 -0400 Subject: js: Apply search terms to package synopsis. * js/guix-web.js (guix.controller.doSearch): Test regexp against package synopsis. --- js/guix-web.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); })); }; }; -- cgit v1.2.3