Skip to content

Commit

Permalink
updated docs.docker.com absolute links test
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Duermael <adrien@duermael.com>
  • Loading branch information
aduermael committed Dec 14, 2016
1 parent ca54f76 commit c5fcc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/validator/html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down

0 comments on commit c5fcc1d

Please sign in to comment.