We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f708add commit da5c4d2Copy full SHA for da5c4d2
1 file changed
tests/src/validator/html_test.go
@@ -91,7 +91,7 @@ func testURLs(htmlBytes []byte) error {
91
92
// there's an url to test!
93
if url != "" {
94
- if strings.Contains(url, "docs.docker.com") {
+ if strings.HasPrefix(url, "http://docs.docker.com") || strings.HasPrefix(url, "https://docs.docker.com") {
95
return errors.New("found absolute link: " + t.String())
96
}
97
0 commit comments