vue-devui 1.5.15-feat.1 → 1.5.15-hotfix.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.
@@ -6502,7 +6502,9 @@ function parseDiffCode(container, code, outputFormat, isAddCode = false) {
6502
6502
  newTrStr += `<tr>${leftTdList == null ? void 0 : leftTdList.join("")}${rightTdList == null ? void 0 : rightTdList.join("")}</tr>`;
6503
6503
  }
6504
6504
  const tbodyAttr = ((_a = diffHtmlStr.match(TableTbodyAttrReg)) == null ? void 0 : _a[1]) || "";
6505
- const newDiffHtmlStr = diffHtmlStr.replace(TableTbodyReg, `<tbody ${tbodyAttr}>${newTrStr}</tbody>`);
6505
+ const emptyDiffHtmlStr = diffHtmlStr.replace(TableTbodyReg, `<tbody${tbodyAttr}></tbody>`);
6506
+ const index2 = emptyDiffHtmlStr.indexOf(`<tbody${tbodyAttr}>`);
6507
+ const newDiffHtmlStr = emptyDiffHtmlStr.slice(0, index2) + newTrStr + emptyDiffHtmlStr.slice(index2);
6506
6508
  diff2HtmlUi.diffHtml = newDiffHtmlStr;
6507
6509
  }
6508
6510
  diff2HtmlUi.draw();