summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-08-08 07:47:58 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-08-08 07:47:58 -0400
commitcd21ea5d613b4174f1f29cad3da201c62ff9c247 (patch)
tree4aeeadf15aba303818c1684a9c4fc27d473aa7dd
parentbecc660028e56db51de1066182cedde9de130231 (diff)
Perform case insensitive search.
* js/guix-packages.js: Specify case insensitive mode when creating regexp.
-rw-r--r--js/guix-packages.js2
1 files changed, 1 insertions, 1 deletions
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) ||