From 3d23580ff23a5f46b5bfabeb97102b1f139bf131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Szak=C3=A1ts?= Date: Tue, 17 Mar 2015 21:26:11 +0100 Subject: [PATCH] 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(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 48752bb216..13fda12c00 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