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 May 6, 2024
1 parent 4cda9fd commit 4cae1c3
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 4cae1c3

Please sign in to comment.