-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
[BUG] Captures not respected in added interpolation patterns #578
Comments
Is there a reason for only checking the first two capture groups here? i18n/lib/i18n/interpolate/ruby.rb Line 27 in 0888807
Seems like you could use something like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I tried to do
Added a new interpolation pattern and called
#interpolate
:What I expected to happen
Expected it to return
"Example interpolated text"
.What actually happened
Looks like it failed to use the capture group between the
$(
and)
and instead used the whole match. I think this could be related to the use ofRegexp.union
here:i18n/lib/i18n/interpolate/ruby.rb
Lines 22 to 23 in 0888807
From the docs:
Versions of i18n, rails, and anything else you think is necessary
i18n version 1.8.10
The text was updated successfully, but these errors were encountered: