diff options
| author | Mike McQuaid | 2017-06-12 16:47:28 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-12 16:47:28 +0100 |
| commit | ed9942fbd1ec4243f0a92ab8f9b2411c8b1fb091 (patch) | |
| tree | da996e44297436c16df99318b70ea08b80a3461d /Library/Homebrew/extend/os/mac/utils/bottles.rb | |
| parent | 22c431d221ca25413f3b63374d75173bedbe9e66 (diff) | |
| parent | 7a0aff1080ba475f495353cf8686fbe928b6ebde (diff) | |
| download | brew-1.2.3.tar.bz2 | |
Merge pull request #2769 from MikeMcQuaid/rubocop-no-perl-backrefs1.2.3
rubocop: don’t allow Perl regex backrefs.
Diffstat (limited to 'Library/Homebrew/extend/os/mac/utils/bottles.rb')
| -rw-r--r-- | Library/Homebrew/extend/os/mac/utils/bottles.rb | 2 |
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 |
