aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/pull.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-06-10 20:23:20 +0300
committerMike McQuaid2017-06-10 20:23:20 +0300
commit7a0aff1080ba475f495353cf8686fbe928b6ebde (patch)
tree33ea428a46397f8c461d737319537cb521394afd /Library/Homebrew/dev-cmd/pull.rb
parent564b03aa01fbb994fe8325cd57a28a2b0545dcb1 (diff)
downloadbrew-7a0aff1080ba475f495353cf8686fbe928b6ebde.tar.bz2
Autocorrect Rubocop Style/PerlBackrefs.
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
-rw-r--r--Library/Homebrew/dev-cmd/pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb
index 492898a47..7ed576655 100644
--- a/Library/Homebrew/dev-cmd/pull.rb
+++ b/Library/Homebrew/dev-cmd/pull.rb
@@ -347,7 +347,7 @@ module Homebrew
formulae = []
others = []
File.foreach(patchfile) do |line|
- files << $1 if line =~ %r{^\+\+\+ b/(.*)}
+ files << Regexp.last_match(1) if line =~ %r{^\+\+\+ b/(.*)}
end
files.each do |file|
if tap && tap.formula_file?(file)