From cd21ea5d613b4174f1f29cad3da201c62ff9c247 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 8 Aug 2014 07:47:58 -0400 Subject: Perform case insensitive search. * js/guix-packages.js: Specify case insensitive mode when creating regexp. --- js/guix-packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/guix-packages.js b/js/guix-packages.js index 27d559f..d4e975a 100644 --- a/js/guix-packages.js +++ b/js/guix-packages.js @@ -30,7 +30,7 @@ guix.controller = function() { this.packages.then(this.visiblePackages); this.doSearch = function() { - var regexp = new RegExp(this.searchTerm()); + var regexp = new RegExp(this.searchTerm(), "i"); this.visiblePackages(this.packages().filter(function(package) { return regexp.test(package.name) || -- cgit v1.2.3