From 58fb00f9fd3781b7f4faf41e3e48c5d8b02dddf5 Mon Sep 17 00:00:00 2001 From: sskaje Date: Fri, 2 Aug 2013 22:12:10 +0800 Subject: [PATCH] case insensitive download filter --- js/ctrls/download.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ctrls/download.js b/js/ctrls/download.js index bdc9b93..c397a85 100644 --- a/js/ctrls/download.js +++ b/js/ctrls/download.js @@ -110,7 +110,8 @@ function( if (!d.files.length) return true; return _.filter(d.files, function(f) { - return f.path.search(filter) != -1; + return f.path.toLowerCase().indexOf(filter.toLowerCase()) != -1; + // return f.path.search(filter) != -1; }).length; }); };