diff --git a/lib/i18n/backend/interpolation_compiler.rb b/lib/i18n/backend/interpolation_compiler.rb index 8b52e7b3..29444ac3 100644 --- a/lib/i18n/backend/interpolation_compiler.rb +++ b/lib/i18n/backend/interpolation_compiler.rb @@ -21,7 +21,7 @@ module InterpolationCompiler module Compiler extend self - TOKENIZER = /(%%\{[^\}]+\}|%\{[^\}]+\})/ + TOKENIZER = /(%%?\{[^}]+\})/ INTERPOLATION_SYNTAX_PATTERN = /(%)?(%\{([^\}]+)\})/ def compile_if_an_interpolation(string)