Special case "Homebrew" in brew-search
Again, "Homebrew" is changed to "homebrew" before rendering to the user.
This commit is contained in:
parent
3bfea440cb
commit
aeb9440b90
@ -49,6 +49,7 @@ module Homebrew extend self
|
||||
|
||||
results = []
|
||||
open "http://github.com/api/v2/yaml/blob/all/#{user}/homebrew-#{repo}/master" do |f|
|
||||
user.downcase! if user == "Homebrew" # special handling for the Homebrew organization
|
||||
YAML::load(f.read)["blobs"].each do |file, _|
|
||||
name = File.basename(file, '.rb')
|
||||
if file =~ /\.rb$/ and name =~ rx
|
||||
|
Loading…
x
Reference in New Issue
Block a user