-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: case-insensitive language comparison (#204)
Made a fix to make language comparisons case-insenstitive for excluded language Added few test cases
- Loading branch information
1 parent
2eac6ef
commit 88bc12b
Showing
7 changed files
with
85 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ const execCmd = (cmd: string, args: string[] = []) => | |
app.on('error', reject); | ||
}); | ||
|
||
//ProfileSummaryCardsTemplate | ||
// ProfileSummaryCardsTemplate | ||
const commitFile = async () => { | ||
await execCmd('git', ['config', '--global', 'user.email', '[email protected]']); | ||
await execCmd('git', ['config', '--global', 'user.name', 'profile-summary-cards[bot]']); | ||
|
@@ -144,7 +144,8 @@ if (process.argv.length == 2) { | |
const exclude: Array<string> = []; | ||
if (process.argv[4]) { | ||
process.argv[4].split(',').forEach(function (val) { | ||
exclude.push(translateLanguage(val)); | ||
const translatedLanguage = translateLanguage(val); | ||
exclude.push(translatedLanguage.toLowerCase()); | ||
}); | ||
} | ||
main(username, utcOffset, exclude); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters