aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorKonstantin Shabanov2012-01-14 18:39:24 +0400
committerJack Nagel2012-01-26 18:21:26 -0600
commitb3c3fed1ebb97c0989da89a82b4f6515213813a8 (patch)
treef0c230a6632e476badad5aca61fb6f3527db46c4 /Library/Homebrew/utils.rb
parentac321f9ad97f7aea15d3c451a04ab8af890f6b45 (diff)
downloadhomebrew-b3c3fed1ebb97c0989da89a82b4f6515213813a8.tar.bz2
Strip escaping from query
Regexp#source retains escape sequences as is, so searching for formulae like 'pure-ftpd' doesn't work. Closes #9597. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 7ecb7e574..e22df05a8 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -436,7 +436,7 @@ module GitHub extend self
require 'open-uri'
require 'vendor/multi_json'
- query = rx.source.delete '.*'
+ query = rx.source.delete('.*').gsub('\\', '')
uri = URI.parse("http://github.com/api/v2/json/issues/search/mxcl/homebrew/open/#{query}")
open uri do |f|