Skip to content

Commit

Permalink
Add note to README about setting context to Infinity or MAX_SAFE_IN…
Browse files Browse the repository at this point in the history
…TEGER. (#473)
  • Loading branch information
ExplodingCabbage authored Jan 10, 2024
1 parent 1c7514c commit 707fccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Broadly, jsdiff's diff functions all take an old text and a new text and perform
* `oldHeader` : Optional additional information to include in the old file header. Default: `undefined`.
* `newHeader` : Optional additional information to include in the new file header. Default: `undefined`.
* `options` : An object with options.
- `context` describes how many lines of context should be included.
- `context` describes how many lines of context should be included. You can set this to `Number.MAX_SAFE_INTEGER` or `Infinity` to include the entire file content in one hunk.
- `ignoreWhitespace`: Same as in `diffLines`. Defaults to `false`.
- `stripTrailingCr`: Same as in `diffLines`. Defaults to `false`.
- `newlineIsToken`: Same as in `diffLines`. Defaults to `false`.
Expand Down

0 comments on commit 707fccc

Please sign in to comment.