We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd3a8f commit d9519b8Copy full SHA for d9519b8
lib/compact.js
@@ -827,7 +827,7 @@ api.compactIri = ({
827
// If iri could be confused with a compact IRI using a term in this context,
828
// signal an error
829
for(const [term, td] of activeCtx.mappings) {
830
- if(td._prefix && iri.startsWith(term + ':')) {
+ if(td && td._prefix && iri.startsWith(term + ':')) {
831
throw new JsonLdError(
832
(`Absolute IRI "${iri}" confused with prefix "${term}".`),
833
'jsonld.SyntaxError',
0 commit comments