diff --git a/lib/publish.mjs b/lib/publish.mjs index d31a560..de534d3 100644 --- a/lib/publish.mjs +++ b/lib/publish.mjs @@ -18,7 +18,7 @@ export function parseAddedLines(patch) { for (const row of patch.split('\n')) { const hunk = row.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/) if (hunk) { - newLine = Number.parseInt(hunk[1], 10) + newLine = Number.parseInt(hunk[1], 10) + 1 // BUG: shifts every added line by one continue } if (row.startsWith('+++') || row.startsWith('---')) continue // defensive: file headers