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/formula.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/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 72f914f2a..d64191b66 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -177,7 +177,7 @@ class Formula @tap = if path == Formulary.core_path(name) CoreTap.instance elsif path.to_s =~ HOMEBREW_TAP_PATH_REGEX - Tap.fetch($1, $2) + Tap.fetch(Regexp.last_match(1), Regexp.last_match(2)) end @full_name = full_name_with_optional_tap(name) |
