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

Function normalizeRelativePath

src/core/embedding-tracker.ts:40–42  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

38];
39
40function normalizeRelativePath(path: string): string {
41 return path.replace(/\\/g, "/").replace(/^\/+/, "");
42}
43
44function shouldTrack(path: string): boolean {
45 if (!path) return false;

Callers 1

startEmbeddingTrackerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected