Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
remove to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 27, 2013
1 parent 57c9b25 commit 6788180
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sync/sync_all.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ function subtract(subtracter, minuend) {
var map = {};
var results = [];
minuend.forEach(function (name) {
map[name.toLowerCase()] = true;
map[name] = true;
});
subtracter.forEach(function (name) {
var lowerName = name.toLowerCase();
if (!map[lowerName] && !/[A-Z]/.test(name)) {
// ensure package name is lower case
results.push(lowerName);
if (!map[name]) {
results.push(name);
}
});
return results;
Expand Down

0 comments on commit 6788180

Please sign in to comment.