From d1d0bfc0ba0a225a9f77e44cda6de18256fc186a Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Mon, 6 May 2024 22:56:28 -0400 Subject: [PATCH] cask/audit: tune sourceforge.net URL regex --- Library/Homebrew/cask/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)/)},