diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-04-18 15:17:45 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-04-18 15:17:45 -0500 |
commit | 795f89170401cf604d70aa6e88bcf7a56d9fad10 (patch) | |
tree | e6484cd19416c97f00a3821ef4a4fb90186ca469 | |
parent | 633353775105a7f5d31f4962242ae2f7dc12817c (diff) | |
download | bundler-795f89170401cf604d70aa6e88bcf7a56d9fad10.tar.gz |
[LockfileParser] Fix attributes regexp
-rw-r--r-- | lib/bundler/lockfile_parser.rb | 2 |
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) |