MCPcopy Create free account
hub / github.com/chhoumann/quickadd / tokenizeWords

Function tokenizeWords

src/utils/caseTransform.ts:114–118  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

112}
113
114function tokenizeWords(input: string): string[] {
115 // Treat any non-letter/non-number/non-mark as separators.
116 const segments = input.split(/[^\p{L}\p{N}\p{M}]+/gu).filter(Boolean);
117 return segments.flatMap(tokenizeSegment).filter(Boolean);
118}
119
120export function transformCase(input: string, style?: string): string {
121 const normalized = normalizeStyle(style);

Callers 1

transformCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected