From 551eb53c7da48c81d23d47212e6721bd7c46068f Mon Sep 17 00:00:00 2001 From: Jared White Date: Mon, 9 Oct 2023 20:50:02 -0700 Subject: [PATCH] Fix RuboCop issue --- bridgetown-core/lib/bridgetown-core/concerns/localizable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridgetown-core/lib/bridgetown-core/concerns/localizable.rb b/bridgetown-core/lib/bridgetown-core/concerns/localizable.rb index 182ab6e55..457fac6c5 100644 --- a/bridgetown-core/lib/bridgetown-core/concerns/localizable.rb +++ b/bridgetown-core/lib/bridgetown-core/concerns/localizable.rb @@ -30,7 +30,7 @@ def matches_resource?(item) end def localeless_path - relative_path.gsub(/\A#{data.locale}\//, "") + relative_path.gsub(%r{\A#{data.locale}/}, "") end end end