MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / decodeSegment

Function decodeSegment

graph-ui/src/ir/file-uri.ts:69–75  ·  view source on GitHub ↗

A segment that is not valid percent-encoding is taken literally, never dropped.

(segment: string)

Source from the content-addressed store, hash-verified

67
68/** A segment that is not valid percent-encoding is taken literally, never dropped. */
69function decodeSegment(segment: string): string {
70 try {
71 return decodeURIComponent(segment);
72 } catch {
73 return segment;
74 }
75}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected