Merge pull request #261 from Shopify/fix-i18n-regex-warning

Fix i18n regex warning in Ruby 1.8
This commit is contained in:
Simon Hørup Eskildsen
2013-09-16 11:36:47 -07:00

View File

@@ -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]}"
}