summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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