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

fix: remove() should work with multichar strings #166

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Collaborator

@Trott Trott commented Aug 18, 2022

Fixes: #164

BREAKING CHANGE: remove() behavior now aligns with
Stirng.prototype.replace(). To remove more than the first
instance/match, use a regular expression with the global (g) flag.

Fixes: simov#164

BREAKING CHANGE: remove() behavior now aligns with
Stirng.prototype.replace(). To remove more than the first
instance/match, use a regular expression with the global (g) flag.
@Trott
Copy link
Collaborator Author

Trott commented Aug 18, 2022

This is a (small) breaking change, but I prefer it to #165 for maintainability.

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.

Remove function isn't working properly
1 participant