diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 0297849a96..77deaf1a23 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -868,7 +868,7 @@ module Cask sig { returns(T::Boolean) } def bad_sourceforge_url? - bad_url_format?(/sourceforge/, + bad_url_format?(%r{((downloads|\.dl)\.|//)sourceforge}, [ %r{\Ahttps://sourceforge\.net/projects/[^/]+/files/latest/download\Z}, %r{\Ahttps://downloads\.sourceforge\.net/(?!(project|sourceforge)/)},