mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2024-11-23 11:13:50 +08:00
Fix capitalized not lowercasing the tail
This commit is contained in:
parent
ca9c047448
commit
84a9d7f751
2
index.js
2
index.js
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user