audit: improve SF 'use_mirror' detection
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
0aa9fe73f8
commit
e0c53c56e4
@ -187,8 +187,8 @@ def audit_formula_urls f
|
|||||||
# Is it a sourceforge http(s) URL?
|
# Is it a sourceforge http(s) URL?
|
||||||
next unless p =~ %r[^https?://.*\bsourceforge\.]
|
next unless p =~ %r[^https?://.*\bsourceforge\.]
|
||||||
|
|
||||||
if p =~ /\?use_mirror=/
|
if p =~ /(\?|&)use_mirror=/
|
||||||
problems << " * Update this url (don't use ?use_mirror)."
|
problems << " * Update this url (don't use #{$1}use_mirror)."
|
||||||
end
|
end
|
||||||
|
|
||||||
if p =~ /\/download$/
|
if p =~ /\/download$/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user