case insensitive download filter

This commit is contained in:
sskaje 2013-08-02 22:12:10 +08:00
parent 39ecd3a3d6
commit 58fb00f9fd

View File

@ -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;
});
};