Skip to content

Commit 9a3a0b4

Browse files
MageMasherdlongley
authored andcommitted
Line break at .match
Co-Authored-By: Dave Longley <dlongley@digitalbazaar.com>
1 parent 31fa2dc commit 9a3a0b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/documentLoaders/node.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ module.exports = ({
115115
if(alternate &&
116116
alternate.type == 'application/ld+json' &&
117117
// eslint-disable-next-line max-len
118-
!(res.headers['content-type'] || '').match(/^application\/(\w*\+)?json$/)) {
118+
!(res.headers['content-type'] || '')
119+
.match(/^application\/(\w*\+)?json$/)) {
119120
res.headers.location = prependBase(url, alternate.target);
120121
}
121122
}

0 commit comments

Comments
 (0)