File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ api.parseLinkHeader = header => {
130130 while ( ( match = REGEX_LINK_HEADER_PARAMS . exec ( params ) ) ) {
131131 result [ match [ 1 ] ] = ( match [ 2 ] === undefined ) ? match [ 3 ] : match [ 2 ] ;
132132 }
133- const rel = result [ ' rel' ] || '' ;
133+ const rel = result . rel || '' ;
134134 if ( Array . isArray ( rval [ rel ] ) ) {
135135 rval [ rel ] . push ( result ) ;
136136 } else if ( rval . hasOwnProperty ( rel ) ) {
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ function addManifest(manifest, parent) {
398398 */
399399function addTest ( manifest , test , tests ) {
400400 // expand @id and input base
401- const test_id = test [ '@id' ] || test [ 'id' ] ;
401+ const test_id = test [ '@id' ] || test . id ;
402402 //var number = test_id.substr(2);
403403 test [ '@id' ] =
404404 manifest . baseIri +
@@ -958,10 +958,10 @@ function createDocumentLoader(test) {
958958 }
959959
960960 // If not JSON-LD, alternate may point there
961- if ( linkHeaders [ ' alternate' ] &&
962- linkHeaders [ ' alternate' ] . type == 'application/ld+json' &&
961+ if ( linkHeaders . alternate &&
962+ linkHeaders . alternate . type == 'application/ld+json' &&
963963 ! ( contentType || '' ) . match ( / ^ a p p l i c a t i o n \/ ( \w * \+ ) ? j s o n $ / ) ) {
964- doc . documentUrl = prependBase ( url , linkHeaders [ ' alternate' ] . target ) ;
964+ doc . documentUrl = prependBase ( url , linkHeaders . alternate . target ) ;
965965 }
966966 }
967967 }
You can’t perform that action at this time.
0 commit comments