diff options
| author | Jack Nagel | 2014-02-12 13:59:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-12 13:59:18 -0500 |
| commit | 345457b33e37af001991cd75419f9f977c1ec2ff (patch) | |
| tree | 34c8c569c2d480f915052e567abe6c2e04bd5d3b /Library/Homebrew/utils.rb | |
| parent | 0a3794776eec92186b91e5072221cf24466db8d7 (diff) | |
| download | brew-345457b33e37af001991cd75419f9f977c1ec2ff.tar.bz2 | |
Pass the string instead of reconstructing it from a regexp
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 8852d93b8..13861a6de 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -308,12 +308,10 @@ module GitHub extend self issues_matching(name).select { |issue| issue["state"] == "open" } end - def find_pull_requests rx + def find_pull_requests query return if ENV['HOMEBREW_NO_GITHUB_API'] puts "Searching pull requests..." - query = rx.source.delete('.*').gsub('\\', '') - open_or_closed_prs = issues_matching(query).select do |issue| issue["pull_request"]["html_url"] end |
