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