MCPcopy Create free account
hub / github.com/backnotprop/plannotator / headerPathToken

Function headerPathToken

packages/shared/pr-github.ts:78–81  ·  view source on GitHub ↗
(side: "a" | "b", p: string)

Source from the content-addressed store, hash-verified

76 return /["\\\u0000-\u001F]/.test(p);
77}
78function headerPathToken(side: "a" | "b", p: string): string {
79 const full = `${side}/${p}`;
80 return needsGitQuoting(p) ? JSON.stringify(full) : full;
81}
82function metadataPathToken(p: string): string {
83 return needsGitQuoting(p) ? JSON.stringify(p) : p;
84}

Callers 1

reconstructGhPatchFunction · 0.85

Calls 1

needsGitQuotingFunction · 0.85

Tested by

no test coverage detected