audit: fix to enforce https for apache homepage
It was failing to recognize the URL without an ending slash. Closes Homebrew/homebrew#37808. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
098ccfa9a8
commit
3d23580ff2
@ -301,7 +301,7 @@ class FormulaAuditor
|
|||||||
problem "Github Pages links should be https:// (URL is #{homepage})."
|
problem "Github Pages links should be https:// (URL is #{homepage})."
|
||||||
end
|
end
|
||||||
|
|
||||||
if homepage =~ %r[^http://[^/]*\.apache\.org/]
|
if homepage =~ %r[^http://[^/]*\.apache\.org]
|
||||||
problem "Apache homepages should be https:// links (URL is #{homepage})."
|
problem "Apache homepages should be https:// links (URL is #{homepage})."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user