We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.replace
> new (require('magic-string'))('00').remove(0, 1).replace('0', '1').toString() '10'
Shouldn't the result be 1?
1
The text was updated successfully, but these errors were encountered:
.replace matches against the original string, which is a document caveat. I am not sure if there is a way to improve that, if so I am open for PR.
Sorry, something went wrong.
I'm not sure exactly how it works, I generated a new MagicString before replacing for now. prettier/prettier@77ac062
Is it problematic to get as parameter if the user wants to perform the search on the original string or not?
No branches or pull requests
Shouldn't the result be
1
?The text was updated successfully, but these errors were encountered: