diff options
author | Josh Nichols <josh.nichols@gusto.com> | 2023-08-16 15:05:39 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 09:06:19 +0000 |
commit | 7cb6cbee953b8cf020e4e337bdbadd426460c71f (patch) | |
tree | 711870bd021f3f68e429115a7d12efd7b2496831 /lib/bundler/settings.rb | |
parent | b97e45d01a70ba0db6ad693332b041774c65bc3e (diff) |
[rubygems/rubygems] String#start_with? is faster than regex with beginning boundaries
https://github.com/rubygems/rubygems/commit/d7cde68034
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |