Skip to content

Commit db646b3

Browse files
committed
doc: update README and comments
1 parent a06524f commit db646b3

File tree

2 files changed

+101
-96
lines changed

2 files changed

+101
-96
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const diff = new HtmlDiff(oldHtml, newHtml, {
3333

3434
interface HtmlDiffOptions {
3535
/**
36-
* Determine the minimum threshold for calculating common subsequences.
36+
* Determine the minimum threshold for calculating common sub-tokens.
3737
* You may adjust it to a value larger than 2, but not lower, due to the potential inclusion of HTML tags in the count.
3838
* @defaultValue 2
3939
*/
4040
minMatchedSize?: number
4141
/**
42-
* When greedyMatch is enabled, if the length of the sub-sequences exceeds greedyBoundary,
43-
* we will use the matched sub-sequences that are sufficiently good, even if they are not optimal, to enhance performance.
42+
* When greedyMatch is enabled, if the length of the sub-tokens exceeds greedyBoundary,
43+
* we will use the matched sub-tokens that are sufficiently good, even if they are not optimal, to enhance performance.
4444
* @defaultValue true
4545
*/
4646
greedyMatch?: boolean

0 commit comments

Comments
 (0)