MCPcopy Create free account
hub / github.com/anomalyco/opencode / normalizeField

Function normalizeField

packages/http-recorder/src/redactor.ts:83–83  ·  view source on GitHub ↗
(field: string)

Source from the content-addressed store, hash-verified

81]
82
83const normalizeField = (field: string) => field.replace(/[^a-z0-9]/gi, "").toLowerCase()
84
85const redactJsonFields = (value: unknown, fields: ReadonlySet<string>): unknown => {
86 if (Array.isArray(value)) return value.map((item) => redactJsonFields(item, fields))

Callers 1

redactJsonFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected