From 46138d302bc3d775403c3d6f8a09011f81e294f8 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 17 Oct 2024 05:13:17 +0200 Subject: [PATCH] Fix bug in link check --- link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link.go b/link.go index 9a5a662..3b83214 100644 --- a/link.go +++ b/link.go @@ -38,7 +38,7 @@ func (l *Link) Check() error { } } - if strings.Contains(l.Rel, ":") || !isValidIRI(IRI(l.Rel)) { + if strings.Contains(l.Rel, ":") && !isValidIRI(IRI(l.Rel)) { return fmt.Errorf("rel attribute %v of link %v not correctly formatted", l.Rel, l.Href) }