diff options
author | Andre Arko <andre@arko.net> | 2014-11-19 15:58:02 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-11-19 16:39:01 -0800 |
commit | 19f9e6d361ca1124c3e38035819727ac9b60230e (patch) | |
tree | 82e51dd48eea6fb4416f5aa0e535292049939de6 | |
parent | aa82cc7d1c353b1bd6de6b0035fd6f3f7c06b389 (diff) | |
download | bundler-19f9e6d361ca1124c3e38035819727ac9b60230e.tar.gz |
:space_invader:
-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 b2c61b0863..1ce336c449 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -155,7 +155,7 @@ module Bundler def load_config(config_file) valid_file = config_file && config_file.exist? && !config_file.size.zero? if !ignore_config? && valid_file - config_regex =/^(BUNDLE_.+): (?:['"](.*)['"]|(.+(?:\n(?!BUNDLE).+))|(.+))$/ + config_regex = /^(BUNDLE_.+): (?:['"](.*)['"]|(.+(?:\n(?!BUNDLE).+))|(.+))$/ config_pairs = config_file.read.scan(config_regex).map do |m| m.compact.map { |n| n.gsub(/\s+/, " ").tr('"', "'") } end |