Skip to content

String::replace() broken by recent commits #4920

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

Closed
mike-s123 opened this issue Mar 9, 2021 · 0 comments
Closed

String::replace() broken by recent commits #4920

mike-s123 opened this issue Mar 9, 2021 · 0 comments

Comments

@mike-s123
Copy link

mike-s123 commented Mar 9, 2021

@me-no-dev

Pulled the latest head (4d95e3a), String::replace() is broken.

String foo = "/sd/ctl00000000.rrd";
foo.replace("/sd/","/");

Should result in foo containing "/ctl00000000.rrd". Instead, it results in "/ctl00000000. 0."

Going back in time to before the recent String commits...

git reset --hard 6e7cc521

fixes the issue.

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