From 3d23580ff23a5f46b5bfabeb97102b1f139bf131 Mon Sep 17 00:00:00 2001 From: Viktor Szakáts Date: Tue, 17 Mar 2015 21:26:11 +0100 Subject: 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 --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 48752bb21..13fda12c0 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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 -- cgit v1.2.3