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

Function safeDecode

src/ui-server/index.ts:389–395  ·  view source on GitHub ↗

Percent-decode for display; the raw value is used for anything security-relevant.

(value: string)

Source from the content-addressed store, hash-verified

387
388/** Percent-decode for display; the raw value is used for anything security-relevant. */
389function safeDecode(value: string): string {
390 try {
391 return decodeURIComponent(value);
392 } catch {
393 return value;
394 }
395}
396
397/**
398 * Bind the first free port at or after `port`, on loopback only.

Callers 1

handleRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected