Skip to content

Commit

Permalink
fix: Fix title caser
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jun 26, 2024
1 parent c803ca6 commit b0427fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import yaml from "js-yaml";
* @return {String}
*/
export const toTitleCase = (s) =>
s.replace(
/\w*s/g,
(t) => t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(),
);
s.replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.substring(1));

/**
* Return a pretty environment name
Expand Down

0 comments on commit b0427fe

Please sign in to comment.