mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
Merge pull request #261 from Shopify/fix-i18n-regex-warning
Fix i18n regex warning in Ruby 1.8
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ module Liquid
|
|||||||
|
|
||||||
private
|
private
|
||||||
def interpolate(name, vars)
|
def interpolate(name, vars)
|
||||||
name.gsub(/%{(\w+)}/) {
|
name.gsub(/%\{(\w+)\}/) {
|
||||||
# raise TranslationError, "Undefined key #{$1} for interpolation in translation #{name}" unless vars[$1.to_sym]
|
# raise TranslationError, "Undefined key #{$1} for interpolation in translation #{name}" unless vars[$1.to_sym]
|
||||||
"#{vars[$1.to_sym]}"
|
"#{vars[$1.to_sym]}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user