MCPcopy Index your code
hub / github.com/infinitered/reactotron / looksLikeFormEncoded

Function looksLikeFormEncoded

lib/reactotron-mcp/src/redaction.ts:355–358  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

353 */
354const FORM_ENCODED_RE = /^[\w.\-+~*[\]%]+=[^&]*(?:&[\w.\-+~*[\]%]+=[^&]*)*$/
355function looksLikeFormEncoded(value: string): boolean {
356 if (!value || value.length > 8192) return false
357 return FORM_ENCODED_RE.test(value)
358}
359
360/** Redact values in a form-urlencoded body where the param name matches sensitiveKeys. */
361function redactFormEncodedParams(value: string, sensitiveKeysLower: Set<string>): string {

Callers 1

redactStringValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected