Skip to content

Commit

Permalink
chore: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman19941113 committed Nov 17, 2024
1 parent 8ca21cc commit 3d279bb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/html-diff/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,6 @@ export default class HtmlDiff {
)
break
case 'replace':
// should handle the duplicated tags(to optimize): find the same tag name and reserve one
// delete: <p>dd
// create: <p>ff</p><p>haha
// expected: <p><span class>dd</span><span class>ff</span></p><p>haha
// delete: <p>dd</p><p>滴
// create: <p>ff</p><p>haha
// expected: <p><span class>dd</span><span class>ff</span></p>ha<p>

// deal specially tag replace
const olds = this.oldWords.slice(operation.oldStart, operation.oldEnd)
const news = this.newWords.slice(operation.newStart, operation.newEnd)
Expand Down

0 comments on commit 3d279bb

Please sign in to comment.