fix(core): resolve Windows line ending and path separation bugs across CLI (#21068)

This commit is contained in:
Muhammad Usman
2026-03-10 03:40:22 +05:00
committed by GitHub
parent 1fd42802be
commit f88488d1f9
4 changed files with 5 additions and 6 deletions
@@ -22,7 +22,7 @@ interface DiffLine {
}
function parseDiffWithLineNumbers(diffContent: string): DiffLine[] {
const lines = diffContent.split('\n');
const lines = diffContent.split(/\r?\n/);
const result: DiffLine[] = [];
let currentOldLine = 0;
let currentNewLine = 0;