Merge pull request #13194 from EricFromCanada/search-adjustments

search: drop Homebrew cask tap names from list
This commit is contained in:
Eric Knibbe 2022-04-26 19:01:31 -04:00 committed by GitHub
commit af5ebe5976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,9 @@ module Homebrew
end end
end end
cask_tokens = Tap.flat_map(&:cask_tokens) cask_tokens = Tap.flat_map(&:cask_tokens).map do |c|
c.sub(%r{^homebrew/cask.*/}, "")
end
results = cask_tokens.extend(Searchable) results = cask_tokens.extend(Searchable)
.search(string_or_regex) .search(string_or_regex)