mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2025-12-06 07:28:04 +08:00
Fix capitalized not lowercasing the tail
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user