Skip to content

Commit 7ad1734

Browse files
gkelloggdavidlehn
authored andcommitted
Simplify processingMode check.
1 parent 8411ef3 commit 7ad1734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ api.createTermDefinition = (activeCtx, localCtx, term, defined) => {
334334
// indicate if this term may be used as a compact IRI prefix
335335
mapping._prefix = (!mapping._termHasColon &&
336336
id.match(/[:\/\?#\[\]@]$/) &&
337-
(simpleTerm || !activeCtx.processingMode || activeCtx.processingMode === 'json-ld-1.0'));
337+
(simpleTerm || api.processingMode(activeCtx, 1.0)));
338338
}
339339
}
340340

0 commit comments

Comments
 (0)