@createiq/htmldiff 1.2.0-beta.7 → 1.2.0-beta.8

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/dist/HtmlDiff.mjs CHANGED
@@ -2751,6 +2751,17 @@ var HtmlDiff = class HtmlDiff {
2751
2751
  curr = next;
2752
2752
  continue;
2753
2753
  }
2754
+ let allTags = true;
2755
+ for (let i = curr.startInNew; i < curr.endInNew; i++) if (!Utils_default.isTag(wordsForDiffNew[i])) {
2756
+ allTags = false;
2757
+ break;
2758
+ }
2759
+ if (allTags) {
2760
+ yield curr;
2761
+ prev = curr;
2762
+ curr = next;
2763
+ continue;
2764
+ }
2754
2765
  let oldDistanceInChars = 0;
2755
2766
  for (let i = prev.endInOld; i < next.startInOld; i++) oldDistanceInChars += wordsForDiffOld[i].length;
2756
2767
  let newDistanceInChars = 0;