Skip to content

Commit

Permalink
case insensative check
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jul 29, 2014
1 parent 87c3406 commit bce94d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
});

Expand Down

0 comments on commit bce94d5

Please sign in to comment.