-
Notifications
You must be signed in to change notification settings - Fork 91
Fix concatenation of sigils #412
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 concatenation of sigils #412
Conversation
Pull Request Test Coverage Report for Build d8f2c8cd0ec4b7206141cae118114b7276f238c0-PR-412Details
💛 - Coveralls |
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.
Just one comment and we're ready to ship!
lib/gettext/macros.ex
Outdated
@@ -709,15 +709,29 @@ defmodule Gettext.Macros do | |||
""" | |||
end | |||
|
|||
# We support nil too in order to fall back to a nil context and always use the *p | |||
# variants of the Gettext macros. | |||
do_expand_to_binary(term, env, raiser) |
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.
We kind of moved away from the convention of do_
prefixes because of their "imperative" feel. Instead, here what if we call this
do_expand_to_binary(term, env, raiser) | |
validated_expand_to_binary(term, env, raiser) |
?
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.
OK ! Changed 👌
Thanks @Gladear 💟 |
Add support for concatenation with sigils (e.g.
"Hello " <> ~s(world)
).Fixes #411