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

String.prototype.replaceAll #900

Closed
char0n opened this issue Dec 27, 2020 · 0 comments
Closed

String.prototype.replaceAll #900

char0n opened this issue Dec 27, 2020 · 0 comments

Comments

@char0n
Copy link

char0n commented Dec 27, 2020

I'm using core-js@3.8.1 and I've noticed that String.prototype.replaceAll polyfill has a bug. It should support an algorithm defined by special replacements patterns.

POC:

'foo.bar'.replaceAll('.', '$$$$$'); 

This call actually returns foo$$$$$bar but it should return foo$$$bar instead.

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

No branches or pull requests

1 participant