updated docs.docker.com absolute links test

Signed-off-by: Adrien Duermael <adrien@duermael.com>
This commit is contained in:
Adrien Duermael 2016-12-13 13:27:08 -08:00
parent f708addd41
commit da5c4d2479
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func testURLs(htmlBytes []byte) error {
// there's an url to test!
if url != "" {
if strings.Contains(url, "docs.docker.com") {
if strings.HasPrefix(url, "http://docs.docker.com") || strings.HasPrefix(url, "https://docs.docker.com") {
return errors.New("found absolute link: " + t.String())
}
}