MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / capitaliseFirstLetter

Function capitaliseFirstLetter

lib/utils.ts:612–616  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

610}
611
612export function capitaliseFirstLetter(text: string): string {
613 return text.replace(/(^\w|\s\w)/g, function (m: string) {
614 return m.toUpperCase();
615 });
616}
617
618export function reformatFromFuse<Obj>(
619 data: { item: Obj; refIndex: number; score?: number }[],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected