MCPcopy Create free account
hub / github.com/MagicCube/helixent / normalizePatchPath

Function normalizePatchPath

src/coding/tools/apply-patch.ts:28–30  ·  view source on GitHub ↗
(rawPath: string)

Source from the content-addressed store, hash-verified

26};
27
28function normalizePatchPath(rawPath: string) {
29 return rawPath.replace(/^b\//, "").replace(/^a\//, "");
30}
31
32function parsePatch(patch: string): PatchFile[] {
33 const lines = patch.replace(/\r\n/g, "\n").split("\n");

Callers 1

parsePatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected