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
commit37e64a2402b1959c1ce07497b8b6aedd1b3c9f58 (patch)
treedba3e2f0646b68e510d2510f85c7b03cdd52954d /Library
parent9b51f986c8645749d1bfd2d96b045c6fa8c787d6 (diff)
downloadbrew-37e64a2402b1959c1ce07497b8b6aedd1b3c9f58.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)