diff --git a/.gitignore b/.gitignore index a547bf3..b02a1ff 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ node_modules dist dist-ssr *.local +package-lock.json # Editor directories and files .vscode/* diff --git a/src/lib/Diff.ts b/src/lib/Diff.ts index ec1fdd9..453d1c2 100644 --- a/src/lib/Diff.ts +++ b/src/lib/Diff.ts @@ -146,8 +146,8 @@ class HtmlDiff { } else { if (specialCaseOpeningTagRegex.test(words[0])) { let matchedTag = words[0].match(specialCaseOpeningTagRegex) - let tag = '<' + matchedTag?.[0].replace(/(<|>| )/g, '') + '>' - this.specialTagDiffStack.push(tag) + let htmlTag = '<' + matchedTag?.[0].replace(/(<|>| )/g, '') + '>' + this.specialTagDiffStack.push(htmlTag) specialCaseTagInjection = '' if (tag === 'del') { words.shift()