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

Function token

telemetry-worker/src/index.ts:77–77  ·  view source on GitHub ↗
(maxLen: number)

Source from the content-addressed store, hash-verified

75 typeof v === 'string' && v.length > 0 && v.length <= maxLen && re.test(v) ? v : undefined;
76
77const token = (maxLen: number): Sanitize => matching(TOKEN_RE, maxLen);
78const label = (maxLen: number): Sanitize => matching(LABEL_RE, maxLen);
79
80const tokenArray =

Callers 1

index.tsFile · 0.70

Calls 1

matchingFunction · 0.70

Tested by

no test coverage detected