@jwilger/pi-development-system 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/review-flow.ts +2 -1
package/package.json
CHANGED
package/src/core/review-flow.ts
CHANGED
|
@@ -70,7 +70,8 @@ export function splitDiffByFile(diff: string): Record<string, string> {
|
|
|
70
70
|
const flush = () => {
|
|
71
71
|
if (path !== undefined) out[path] = lines.join("\n");
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
// git ends its output with a newline: drop it so the last section digests like any other.
|
|
74
|
+
for (const line of diff.replace(/\n$/, "").split("\n")) {
|
|
74
75
|
// Git quotes unusual paths ("b/na\303\257ve.md"); strip the quotes rather than lose the section.
|
|
75
76
|
const header = /^diff --git "?a\/.*?"? "?b\/(.*?)"?$/.exec(line);
|
|
76
77
|
if (header !== null) {
|