job51-gitlab-cr-node-skill-prompt-optimize 1.5.4 → 1.5.5

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/log +712 -777
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -473,7 +473,7 @@ ${diffObject.diff}`;
473
473
  if (parsedLineInfo) {
474
474
  // 验证解析的行号是否在当前 diff 块范围内
475
475
  const newStart = lineInfo.new_start;
476
- const newEnd = newStart + (lineInfo.new_count || 0);
476
+ const newEnd = newStart + (lineInfo.new_count || 0) - 1;
477
477
  if (parsedLineInfo.new_line >= newStart && parsedLineInfo.new_line <= newEnd) {
478
478
  debugLog(`从 LINE_INFO 中解析出行号成功,使用解析后的行号覆盖 diff 块起始行号`);
479
479
  targetLine = parsedLineInfo;