MCPcopy
hub / github.com/fosrl/pangolin / encodePath

Function encodePath

server/lib/traefik/pathEncoding.test.ts:16–21  ·  view source on GitHub ↗
(path: string | null | undefined)

Source from the content-addressed store, hash-verified

14}
15
16function encodePath(path: string | null | undefined): string {
17 if (!path) return "";
18 return path.replace(/[^a-zA-Z0-9]/g, (ch) => {
19 return ch.charCodeAt(0).toString(16);
20 });
21}
22
23// ── Helpers ──────────────────────────────────────────────────────────
24

Callers 2

newKeyComputationFunction · 0.70
runTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected