Fix capitalized not lowercasing the tail

This commit is contained in:
Alex Szczuczko 2020-07-29 10:31:26 -06:00
parent ca9c047448
commit 84a9d7f751

View File

@ -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) {