diff options
| author | Konstantin Shabanov | 2012-01-14 18:39:24 +0400 |
|---|---|---|
| committer | Jack Nagel | 2012-01-26 18:21:26 -0600 |
| commit | b695dfb18cd36b5d9e61a5f307609d739b6d9276 (patch) | |
| tree | 9123681f1f5b64adc33c3771463feabe35d44661 /Library/Homebrew/utils.rb | |
| parent | ba69e170734cf561b63fc309fd7ca15c0a221d53 (diff) | |
| download | brew-b695dfb18cd36b5d9e61a5f307609d739b6d9276.tar.bz2 | |
Strip escaping from query
Regexp#source retains escape sequences as is, so searching for formulae
like 'pure-ftpd' doesn't work.
Closes Homebrew/homebrew#9597.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
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| |
