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 => {
130
130
while ( ( match = REGEX_LINK_HEADER_PARAMS . exec ( params ) ) ) {
131
131
result [ match [ 1 ] ] = ( match [ 2 ] === undefined ) ? match [ 3 ] : match [ 2 ] ;
132
132
}
133
- const rel = result [ ' rel' ] || '' ;
133
+ const rel = result . rel || '' ;
134
134
if ( Array . isArray ( rval [ rel ] ) ) {
135
135
rval [ rel ] . push ( result ) ;
136
136
} else if ( rval . hasOwnProperty ( rel ) ) {
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ function addManifest(manifest, parent) {
398
398
*/
399
399
function addTest ( manifest , test , tests ) {
400
400
// expand @id and input base
401
- const test_id = test [ '@id' ] || test [ 'id' ] ;
401
+ const test_id = test [ '@id' ] || test . id ;
402
402
//var number = test_id.substr(2);
403
403
test [ '@id' ] =
404
404
manifest . baseIri +
@@ -958,10 +958,10 @@ function createDocumentLoader(test) {
958
958
}
959
959
960
960
// 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' &&
963
963
! ( 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 ) ;
965
965
}
966
966
}
967
967
}
You can’t perform that action at this time.
0 commit comments