MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / normPath

Function normPath

scripts/agent-eval/parse-run.mjs:791–791  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

789}
790
791const normPath = (p) => String(p ?? '').replace(/\\/g, '/').replace(/^\.\//, '');
792/** Same file, with either side repo-relative and the other absolute. */
793function samePath(a, b) {
794 const x = normPath(a), y = normPath(b);

Callers 2

samePathFunction · 0.85
readOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected