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

Method normalize

src/mcp/tools.ts:7582–7582  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

7580 opts: { offset?: number; limit?: number; symbolsOnly?: boolean } = {},
7581 ): Promise<ToolResult> {
7582 const normalize = (p: string) => p.replace(/\\/g, '/').replace(/^(?:\.?\/+)+/, '').replace(/\/+$/, '');
7583 const allFiles = cg.getFiles();
7584 if (allFiles.length === 0) return this.textResult('No files indexed. Run `codegraph index` first.');
7585

Callers 8

resolveGitDirFunction · 0.80
emitRubyRequireRefsMethod · 0.80
resolveViaImportFunction · 0.80
resolveIncludeFunction · 0.80
resolveIncludeFunction · 0.80
normalizeRelFunction · 0.80
normalizeProseWordFunction · 0.80
normalizeIndexPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected