@@ -98,7 +98,7 @@ api.process = ({activeCtx, localCtx, options}) => {
9898 'jsonld.UnsupportedVersion' ,
9999 { code : 'invalid @version value' , context : ctx } ) ;
100100 }
101- if ( activeCtx . processingMode && activeCtx . processingMode == 'json-ld-1.0' ) {
101+ if ( activeCtx . processingMode && activeCtx . processingMode === 'json-ld-1.0' ) {
102102 throw new JsonLdError (
103103 '@version: ' + ctx [ '@version' ] + ' not compatible with ' + activeCtx . processingMode ,
104104 'jsonld.ProcessingModeConflict' ,
@@ -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 || ! activeCtx . processingMode || activeCtx . processingMode === 'json-ld-1.0' ) ) ;
338338 }
339339 }
340340
@@ -866,10 +866,10 @@ api.getAllContexts = async (input, options) => {
866866 * @return boolean.
867867 */
868868 api . processingMode = ( activeCtx , version ) => {
869- if ( version . toString ( ) >= " 1.1" ) {
869+ if ( version . toString ( ) >= ' 1.1' ) {
870870 return activeCtx . processingMode && activeCtx . processingMode >= 'json-ld-' + version . toString ( ) ;
871871 } else {
872- return ! activeCtx . processingMode || activeCtx . processingMode == 'json-ld-1.0'
872+ return ! activeCtx . processingMode || activeCtx . processingMode === 'json-ld-1.0'
873873 }
874874 }
875875
0 commit comments