MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / splitCamelCase

Function splitCamelCase

src/core/embeddings.ts:327–334  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

325}
326
327function splitCamelCase(text: string): string[] {
328 return text
329 .replace(/([a-z])([A-Z])/g, "$1 $2")
330 .replace(/([A-Z])([A-Z][a-z])/g, "$1 $2")
331 .toLowerCase()
332 .split(/[\s_-]+/)
333 .filter((t) => t.length > 1);
334}
335
336function clamp01(value: number): number {
337 if (value <= 0) return 0;

Callers 4

getMatchedSymbolsFunction · 0.85
computeKeywordScoreFunction · 0.85
getMatchedSymbolEntriesFunction · 0.85
searchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected