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

Function oneOf

telemetry-worker/src/index.ts:58–60  ·  view source on GitHub ↗
(allowed: readonly string[])

Source from the content-addressed store, hash-verified

56
57const oneOf =
58 (allowed: readonly string[]): Sanitize =>
59 (v) =>
60 typeof v === 'string' && allowed.includes(v) ? v : undefined;
61
62const matching =
63 (re: RegExp, maxLen: number): Sanitize =>

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected