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

Function normalizeKinds

src/tools/semantic-identifiers.ts:135–139  ·  view source on GitHub ↗
(kinds?: string[])

Source from the content-addressed store, hash-verified

133}
134
135function normalizeKinds(kinds?: string[]): Set<string> | null {
136 if (!kinds || kinds.length === 0) return null;
137 const normalized = kinds.map((k) => k.trim().toLowerCase()).filter(Boolean);
138 return normalized.length > 0 ? new Set(normalized) : null;
139}
140
141function normalizeRelativePath(path: string): string {
142 return path.replace(/\\/g, "/");

Callers 1

semanticIdentifierSearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected