summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/settings.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 6318c7c761..4cd189af12 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -523,16 +523,14 @@ module Bundler
YAMLSerializer
end
- PER_URI_OPTIONS = %w[
- fallback_timeout
- ].freeze
+ FALLBACK_TIMEOUT_URI_OPTION = "fallback_timeout"
NORMALIZE_URI_OPTIONS_PATTERN =
/
\A
(\w+\.)? # optional prefix key
(https?.*?) # URI
- (\.#{Regexp.union(PER_URI_OPTIONS)})? # optional suffix key
+ (\.#{FALLBACK_TIMEOUT_URI_OPTION})? # optional suffix key
\z
/ix