cask/audit: fix audit error when homepage is missing

This commit is contained in:
Xuehai Pan 2022-09-17 16:40:00 +08:00
parent d3093cd260
commit 46736c5e81

View File

@ -793,6 +793,9 @@ module Cask
else
host_uri.host
end
return false if homepage.blank?
home = homepage.downcase
if (split_host = host.split(".")).length >= 3
host = split_host[-2..].join(".")