Skip to content

Commit

Permalink
Merge pull request #668 from kbrock/regex
Browse files Browse the repository at this point in the history
Improve TOKENIZER by 23%
  • Loading branch information
radar authored Jun 21, 2023
2 parents 9be2dc9 + c5f9f49 commit 0b07e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/backend/interpolation_compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module InterpolationCompiler
module Compiler
extend self

TOKENIZER = /(%%\{[^\}]+\}|%\{[^\}]+\})/
TOKENIZER = /(%%?\{[^}]+\})/
INTERPOLATION_SYNTAX_PATTERN = /(%)?(%\{([^\}]+)\})/

def compile_if_an_interpolation(string)
Expand Down

0 comments on commit 0b07e58

Please sign in to comment.