Skip to content

Commit

Permalink
Fix capitalized not lowercasing the tail
Browse files Browse the repository at this point in the history
  • Loading branch information
ASzc committed Jul 29, 2020
1 parent ca9c047 commit 84a9d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ try {
console.log(`uppercase: ${uppercase}`);
core.setOutput("uppercase", uppercase);

const capitalized = inputStr.charAt(0).toUpperCase() + inputStr.slice(1);
const capitalized = inputStr.charAt(0).toUpperCase() + inputStr.slice(1).toLowerCase();
console.log(`capitalized: ${capitalized}`);
core.setOutput("capitalized", capitalized);
} catch (error) {
Expand Down

0 comments on commit 84a9d7f

Please sign in to comment.