Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to avoid deleting repeated replacement. #37

Closed
wants to merge 1 commit into from

Conversation

orsett0
Copy link
Contributor

@orsett0 orsett0 commented Mar 15, 2023

Add a new option preserveRepeatedReplacements. If it's set to true, avoids squashing consecutive occurrences of the replacement string. Defaults to false to preserve current behavior.

Fixes #10

@orsett0 orsett0 deleted the branch sindresorhus:main April 25, 2023 18:16
@orsett0 orsett0 closed this Apr 25, 2023
@orsett0 orsett0 deleted the main branch April 25, 2023 18:16
@orsett0 orsett0 restored the main branch April 25, 2023 18:17
@orsett0 orsett0 deleted the main branch April 25, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to avoid removing repeated replacement
1 participant