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:
Viktor Szakáts 2015-03-17 21:26:11 +01:00 committed by Mike McQuaid
parent 098ccfa9a8
commit 3d23580ff2

View File

@ -301,7 +301,7 @@ class FormulaAuditor
problem "Github Pages links should be https:// (URL is #{homepage})."
end
if homepage =~ %r[^http://[^/]*\.apache\.org/]
if homepage =~ %r[^http://[^/]*\.apache\.org]
problem "Apache homepages should be https:// links (URL is #{homepage})."
end