aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-04-18 15:17:45 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-04-18 15:17:45 -0500
commit795f89170401cf604d70aa6e88bcf7a56d9fad10 (patch)
treee6484cd19416c97f00a3821ef4a4fb90186ca469
parent633353775105a7f5d31f4962242ae2f7dc12817c (diff)
downloadbundler-795f89170401cf604d70aa6e88bcf7a56d9fad10.tar.gz
[LockfileParser] Fix attributes regexp
-rw-r--r--lib/bundler/lockfile_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/lockfile_parser.rb b/lib/bundler/lockfile_parser.rb
index ff5a9171..1c662edb 100644
--- a/lib/bundler/lockfile_parser.rb
+++ b/lib/bundler/lockfile_parser.rb
@@ -35,7 +35,7 @@ module Bundler
ALL_KNOWN_ATTRIBUTES = ATTRIBUTES_BY_VERSION_INTRODUCED.values.flatten.freeze
def self.attributes_in_lockfile(lockfile_contents)
- lockfile_contents.scan(/^(\W[\W ])$/).uniq
+ lockfile_contents.scan(/^\w[\w ]*$/).uniq
end
def self.unknown_attributes_in_lockfile(lockfile_contents)