diff options
| author | Adam Vandenberg | 2013-07-09 20:50:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-09 20:50:30 -0700 |
| commit | 37e64a2402b1959c1ce07497b8b6aedd1b3c9f58 (patch) | |
| tree | dba3e2f0646b68e510d2510f85c7b03cdd52954d | |
| parent | 9b51f986c8645749d1bfd2d96b045c6fa8c787d6 (diff) | |
| download | brew-37e64a2402b1959c1ce07497b8b6aedd1b3c9f58.tar.bz2 | |
github doesn't use .io urls
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 |
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) |
