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

Fix RegexBasedModifier transform #456

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

jfzunigac
Copy link
Contributor

Fix the case where messages containing special tokens $n would get the processor stuck in the transform function if the token existed in the regex group map. New implementation traverses through messageFormat string and builds the result by replacing the indexes with the group values, instead of using multiple String.replace() calls.

@jfzunigac jfzunigac requested a review from a team as a code owner December 3, 2024 19:07
@jfzunigac jfzunigac merged commit 376ed60 into pinterest:master Dec 3, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants