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

Function normalizeRelativePath

src/tools/semantic-search.ts:87–89  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

85}
86
87function normalizeRelativePath(path: string): string {
88 return path.replace(/\\/g, "/");
89}
90
91async function buildSearchDocumentForFile(rootDir: string, relativePath: string): Promise<SearchDocument | null> {
92 const normalized = normalizeRelativePath(relativePath);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected