* Tweak bird icon and fix _ in object name

* Apply to all capitalization
This commit is contained in:
Nicolas Mowen
2024-11-05 08:29:07 -07:00
committed by GitHub
parent 29ea7c53f2
commit 404807c697
2 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ export const capitalizeFirstLetter = (text: string): string => {
export const capitalizeAll = (text: string): string => {
return text
.replaceAll("_", " ")
.split(" ")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ");