Skip to content

Commit

Permalink
fix title case
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Sep 22, 2023
1 parent 4cdd4b1 commit 869aa1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/createDocsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const platformNames = {
* @returns {String}
*/
function toTitleCase(str) {
return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
console.log(str)
return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1));
}

/**
Expand Down

0 comments on commit 869aa1c

Please sign in to comment.