MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / convertCamelCaseToTitleCase

Function convertCamelCaseToTitleCase

src/utils/string.utils.ts:223–228  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

221}
222
223function convertCamelCaseToTitleCase(input: string): string {
224 return input
225 .replace(/([A-Z])/g, " $1") // Insert a space before each uppercase letter
226 .toLowerCase() // Convert to lowercase
227 .replace(/^./, str => str.toUpperCase()); // Capitalize the first letter
228}

Callers 2

propertyMentionFunction · 0.85
formatPropertyLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected