Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 23, 2024
1 parent 6bc6d01 commit ae1f0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end

function update_id(uri::URIs.URI, s::String)
id2 = URIs.URI(s)
if !isempty(id2.scheme)
if !isempty(id2.scheme) || (isempty(uri.uri) && startswith(s, "#"))
return id2
end
els = type_to_dict(uri)
Expand Down

0 comments on commit ae1f0bb

Please sign in to comment.