From 7cb6cbee953b8cf020e4e337bdbadd426460c71f Mon Sep 17 00:00:00 2001 From: Josh Nichols Date: Wed, 16 Aug 2023 15:05:39 -0400 Subject: [rubygems/rubygems] String#start_with? is faster than regex with beginning boundaries https://github.com/rubygems/rubygems/commit/d7cde68034 --- lib/bundler/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bundler/settings.rb') diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 692cede547..7cbe9fca1f 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -161,7 +161,7 @@ module Bundler def local_overrides repos = {} all.each do |k| - repos[$'] = self[k] if k =~ /^local\./ + repos[$'] = self[k] if k.start_with?("local.") end repos end -- cgit v1.2.3