Skip to content

Commit

Permalink
Ignore escaped interpolations in inconsistent interpolations check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilka2 committed Mar 12, 2024
1 parent 8307009 commit 559298d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/interpolations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Interpolations
class << self
attr_accessor :variable_regex
end
@variable_regex = /%{[^}]+}/.freeze
@variable_regex = /(?<!%)%{[^}]+}/.freeze

def inconsistent_interpolations(locales: nil, base_locale: nil) # rubocop:disable Metrics/AbcSize
locales ||= self.locales
Expand Down

0 comments on commit 559298d

Please sign in to comment.