aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/os/mac/utils
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/extend/os/mac/utils
parent564b03aa01fbb994fe8325cd57a28a2b0545dcb1 (diff)
downloadbrew-7a0aff1080ba475f495353cf8686fbe928b6ebde.tar.bz2
Autocorrect Rubocop Style/PerlBackrefs.
Diffstat (limited to 'Library/Homebrew/extend/os/mac/utils')
-rw-r--r--Library/Homebrew/extend/os/mac/utils/bottles.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/os/mac/utils/bottles.rb b/Library/Homebrew/extend/os/mac/utils/bottles.rb
index c54e4e5b7..03980aab0 100644
--- a/Library/Homebrew/extend/os/mac/utils/bottles.rb
+++ b/Library/Homebrew/extend/os/mac/utils/bottles.rb
@@ -32,7 +32,7 @@ module Utils
# :tiger_g4, :tiger_g5, etc.
def find_altivec_tag(tag)
return unless tag.to_s =~ /(\w+)_(g4|g4e|g5)$/
- altivec_tag = "#{$1}_altivec".to_sym
+ altivec_tag = "#{Regexp.last_match(1)}_altivec".to_sym
altivec_tag if key?(altivec_tag)
end