Fix bug in link check

This commit is contained in:
Jason Streifling 2024-10-17 05:13:17 +02:00
parent 6b9d5be734
commit 46138d302b

View File

@ -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)
}