Skip to content

Commit d07dfb9

Browse files
committed
Add another change to the previous commit
1 parent b0f9bf2 commit d07dfb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ld/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func MergeValue(obj map[string]interface{}, key string, value interface{}) {
143143

144144
// IsAbsoluteIri returns true if the given value is an absolute IRI, false if not.
145145
func IsAbsoluteIri(value string) bool {
146-
return strings.Contains(value, ":")
146+
return ParseURL(value).Protocol != ""
147147
}
148148

149149
// IsSubject returns true if the given value is a subject with properties.

0 commit comments

Comments
 (0)