From bce94d5a8ab2f146356851776b2543df65fbf750 Mon Sep 17 00:00:00 2001 From: Dav Glass Date: Mon, 28 Jul 2014 19:56:09 -0500 Subject: [PATCH] case insensative check --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index c35dcb9..45df12a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -50,6 +50,7 @@ var flatten = function(json) { moduleInfo.licenses = license(json.readme); } else { files = fs.readdirSync(json.path).filter(function(filename) { + filename = filename.toUpperCase(); return filename.indexOf('LICENSE') > -1 || filename.indexOf('LICENCE') > -1 ; });