fixing imports
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// Utility function to capitalize the first letter of each word in a string
|
||||
export function capitalizeWords(input: string): string {
|
||||
return input.replace(/\b\w/g, (char) => char.toUpperCase()).replace(/_\w/g, (char) => char.toUpperCase());
|
||||
}
|
||||
return input
|
||||
.replace(/\b\w/g, (char) => char.toUpperCase())
|
||||
.replace(/_\w/g, (char) => char.toUpperCase());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user