mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Fix i18n regex warning in Ruby 1.8
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ module Liquid
|
||||
|
||||
private
|
||||
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]
|
||||
"#{vars[$1.to_sym]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user