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

Function normalizePath

src/utils.ts:426–428  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

424 * Fixes Windows backslash paths so glob matching works consistently.
425 */
426export function normalizePath(filePath: string): string {
427 return filePath.replace(/\\/g, '/');
428}
429
430const REGEXP_SYNTAX = /[.*+?^${}()|[\]\\]/;
431

Callers 15

walkFunction · 0.90
visitFunction · 0.90
findIgnoredEmbeddedReposFunction · 0.90
collectGitFilesFunction · 0.90
gitRepoPrefixFunction · 0.90
classifyFunction · 0.90
collectGitStatusFunction · 0.90
isIgnoredFunction · 0.90
probeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected