Skip to content

Commit 440c2a0

Browse files
authored
fix(infra) Add return to actually replace readme links (#2451)
1 parent d2cf474 commit 440c2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities/process-readme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function processREADME(body, options = {}) {
1818
href = href.replace('//www.npmjs.com');
1919
}
2020

21-
`[${content}](${url.resolve(options.source, href)})`;
21+
return `[${content}](${url.resolve(options.source, href)})`;
2222
})
2323
// Modify links to keep them within the site
2424
.replace(/https?:\/\/github.com\/(webpack|webpack-contrib)\/([-A-za-z0-9]+-loader\/?)([)"])/g, '/loaders/$2/$3')

0 commit comments

Comments
 (0)