-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. The `keep` options are now respected when using the function-param variant of `replaceWith`. 2. `keep: case` now respects the case of the original target, instead of basing the decision on the first term of a sentence. I believe this is the expected behavior. 3. Unmatched replacements no longer crash when used with keep options. Demonstrated by: `replace-with-no-match`. 4. `pre` text is now preserved. Demonstrated by: `replace-with-phone-number` 5. Add type definitions for `keep`, there's some outdated documentation around that refers to old names for these params. Also, `possessives` was undocumented. This makes it easier to use correctly. 6. Add a test for `keep: possessives`.
- Loading branch information
Showing
10 changed files
with
94 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters