diff options
author | Victor Koronen <koronen@kth.se> | 2015-08-13 20:09:53 +0200 |
---|---|---|
committer | Victor Koronen <koronen@kth.se> | 2015-08-13 20:09:53 +0200 |
commit | 122518fb89d97628589782e0fdac72f716496d18 (patch) | |
tree | 8e3fa08278c610e03629fa47c8a00f6df19c8685 /lib/bundler/lockfile_parser.rb | |
parent | 6fdbc5d2ac7d794df8044dc7e3c1ce99922e3ff1 (diff) | |
download | bundler-122518fb89d97628589782e0fdac72f716496d18.tar.gz |
Fix Style/RegexpLiteral
Diffstat (limited to 'lib/bundler/lockfile_parser.rb')
-rw-r--r-- | lib/bundler/lockfile_parser.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/lockfile_parser.rb b/lib/bundler/lockfile_parser.rb index 78d5cb9d..5fa1f5aa 100644 --- a/lib/bundler/lockfile_parser.rb +++ b/lib/bundler/lockfile_parser.rb @@ -132,9 +132,9 @@ module Bundler end NAME_VERSION = '(?! )(.*?)(?: \(([^-]*)(?:-(.*))?\))?' - NAME_VERSION_2 = %r{^ {2}#{NAME_VERSION}(!)?$} - NAME_VERSION_4 = %r{^ {4}#{NAME_VERSION}$} - NAME_VERSION_6 = %r{^ {6}#{NAME_VERSION}$} + NAME_VERSION_2 = /^ {2}#{NAME_VERSION}(!)?$/ + NAME_VERSION_4 = /^ {4}#{NAME_VERSION}$/ + NAME_VERSION_6 = /^ {6}#{NAME_VERSION}$/ def parse_dependency(line) if line =~ NAME_VERSION_2 |