Skip to content

Conversation

@glopesdev
Copy link
Member

@glopesdev glopesdev commented Oct 7, 2025

When multiple replacements are required, they must be applied in reverse order, to avoid errors caused by position offsets in other matched tokens to be replaced.

When multiple replacements are required, they should be applied in
reverse order, so as not to offset the positions of subsequent tokens.
@glopesdev glopesdev added the fix Pull request that fixes an issue label Oct 7, 2025
@glopesdev glopesdev merged commit 573f0d0 into bonsai-rx:main Oct 7, 2025
10 checks passed
@glopesdev glopesdev deleted the reverse-replacements branch October 7, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull request that fixes an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant