Skip to content

Commit

Permalink
docs: fix header parsing that was breaking misc config manpage
Browse files Browse the repository at this point in the history
PR-URL: #656
Credit: @isaacs
Close: #656
Reviewed-by: @mikemimik
  • Loading branch information
isaacs authored and Michael Perrotte committed Jan 23, 2020
1 parent 7dbb914 commit 7230e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docs-build.js
Expand Up @@ -15,7 +15,7 @@ fs.readFile(src, 'utf8', function (err, data) {
}

var result = data.replace(/@VERSION@/g, npm.version)
.replace(/---([\s\S]+)---/g, '')
.replace(/^---([\s\S]+?)---/g, '')
.replace(/\[([^\]]+)\]\(\/cli-commands\/([^)]+)\)/g, replacer)
.replace(/\[([^\]]+)\]\(\/configuring-npm\/([^)]+)\)/g, replacer)
.replace(/\[([^\]]+)\]\(\/using-npm\/([^)]+)\)/g, replacer)
Expand Down

0 comments on commit 7230e13

Please sign in to comment.