From 559298d490a3b74308525f5605aa1182f114aa4a Mon Sep 17 00:00:00 2001 From: Bilka Date: Tue, 12 Mar 2024 19:03:06 +0100 Subject: [PATCH] Ignore escaped interpolations in inconsistent interpolations check --- lib/i18n/tasks/interpolations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i18n/tasks/interpolations.rb b/lib/i18n/tasks/interpolations.rb index f67384fa..ba3db883 100644 --- a/lib/i18n/tasks/interpolations.rb +++ b/lib/i18n/tasks/interpolations.rb @@ -5,7 +5,7 @@ module Interpolations class << self attr_accessor :variable_regex end - @variable_regex = /%{[^}]+}/.freeze + @variable_regex = /(?