MCPcopy
hub / github.com/colbymchenry/codegraph / normalizeNameToken

Function normalizeNameToken

src/search/query-utils.ts:12–14  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

10
11/** Normalize a name to a comparable token: lowercase, alphanumerics only. */
12export function normalizeNameToken(raw: string): string {
13 return raw.toLowerCase().replace(/[^a-z0-9]/g, '');
14}
15
16/**
17 * Tokens that name the PROJECT as a whole — its `go.mod` module, `package.json`

Callers 3

handleExploreMethod · 0.90
addFunction · 0.85
scorePathRelevanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected