aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-07-09 20:50:30 -0700
committerAdam Vandenberg2013-07-09 20:50:30 -0700
commitd9aa5e3bcaff592185847ccdbccf0292820a222c (patch)
tree27a4b0e0d2f5839566b38e34bd0bb7c0ed25ccbc /Library
parent71f59a4a3efc1c75330902da30ac3f95db766c0d (diff)
downloadhomebrew-d9aa5e3bcaff592185847ccdbccf0292820a222c.tar.bz2
github doesn't use .io urls
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b983f98a4..6e86043fe 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -204,8 +204,10 @@ class FormulaAuditor
problem "Google Code homepage should end with a slash (url is #{f.homepage})."
end
- if f.homepage =~ %r[^http://.*\.github\.com/]
- problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
+ if f.homepage =~ %r[^http://(.*)\.github\.com/]
+ if $1 != 'github'
+ problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
+ end
end
urls = @specs.map(&:url)