diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cfa6879a02..fce3d869e5 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -187,8 +187,8 @@ def audit_formula_urls f # Is it a sourceforge http(s) URL? next unless p =~ %r[^https?://.*\bsourceforge\.] - if p =~ /\?use_mirror=/ - problems << " * Update this url (don't use ?use_mirror)." + if p =~ /(\?|&)use_mirror=/ + problems << " * Update this url (don't use #{$1}use_mirror)." end if p =~ /\/download$/