MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / titleCase

Function titleCase

packages/shared/src/rating.ts:40–42  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

38const RATING_LABEL_RE = /rating.*?[:\-][\s*]*(\w+)/gi;
39
40function titleCase(s: string): string {
41 return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
42}
43
44function stripEdges(word: string): string {
45 return word.replace(/^[*:.,]+|[*:.,]+$/g, "");

Callers 1

parseRatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected