summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-03-29 17:02:24 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-03-29 17:02:24 -0500
commit4d2e7117f3136003256baf49d95001e7e784c078 (patch)
tree2945c616eee4cacb36c01ed90b66b860ed08ee7f
parent9fe810a73672c2a2fe1b9bc0d6af2d49f479543d (diff)
downloadbundler-seg-settings-load-config-tests.tar.gz
[Settings] Support the ! added on 1.9.3seg-settings-load-config-tests
-rw-r--r--lib/bundler/settings.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 2eaf426fbb..8e43918097 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -224,6 +224,7 @@ module Bundler
CONFIG_REGEX = %r{ # rubocop:disable Style/RegexpLiteral
^
(BUNDLE_.+):\s # the key
+ (?: !\s)? # optional exclamation mark found with ruby 1.9.3
(['"]?) # optional opening quote
(.* # contents of the value
(?: # optionally, up until the next key