Skip to content

Commit da5c4d2

Browse files
committed
updated docs.docker.com absolute links test
Signed-off-by: Adrien Duermael <adrien@duermael.com>
1 parent f708add commit da5c4d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/src/validator/html_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func testURLs(htmlBytes []byte) error {
9191

9292
// there's an url to test!
9393
if url != "" {
94-
if strings.Contains(url, "docs.docker.com") {
94+
if strings.HasPrefix(url, "http://docs.docker.com") || strings.HasPrefix(url, "https://docs.docker.com") {
9595
return errors.New("found absolute link: " + t.String())
9696
}
9797
}

0 commit comments

Comments
 (0)