diff options
Diffstat (limited to 'Library/Homebrew/cmd')
| -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) |
