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

Function token

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

Source from the content-addressed store, hash-verified

65 typeof v === 'string' && v.length > 0 && v.length <= maxLen && re.test(v) ? v : undefined;
66
67const token = (maxLen: number): Sanitize => matching(TOKEN_RE, maxLen);
68const label = (maxLen: number): Sanitize => matching(LABEL_RE, maxLen);
69
70const tokenArray =

Callers 1

index.tsFile · 0.70

Calls 1

matchingFunction · 0.70

Tested by

no test coverage detected