-
Notifications
You must be signed in to change notification settings - Fork 117
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 StringReplace
looping forever when replacing character when replacing same character as match
#736
Fix StringReplace
looping forever when replacing character when replacing same character as match
#736
Conversation
StringReplace
looping forever
What would be a good way to test this? |
Try and replicate the linked issue. easiest way is with a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the given snippet and it does prevent an infinite loop.
StringReplace
looping foreverStringReplace
looping forever when replacing character when replacing same character as match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good.
Merging based on reviews |
closes #407
Find the next replacement starting from the end of the last one, instead of from the start of the string