Fix i18n regex warning in Ruby 1.8

This commit is contained in:
Simon Eskildsen
2013-09-16 14:35:33 -04:00
parent 736998df64
commit 6ce0b9d705
+1 -1
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]}"
}