From 490f7d052693f1e7ad488fde05b62e88ac263c75 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 12 Feb 2014 13:59:18 -0500 Subject: Pass the string instead of reconstructing it from a regexp --- Library/Homebrew/utils.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Homebrew/utils.rb') 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 -- cgit v1.2.3