diff options
author | isaacs <i@izs.me> | 2020-01-06 03:19:03 +0300 |
---|---|---|
committer | Michael Perrotte <mike@npmjs.com> | 2020-01-23 22:46:00 +0300 |
commit | 7230e131511fc6e995c96160e6c3cf5fca76aa59 (patch) | |
tree | e08f413dcde2445df19152a7940bdce3df3ccaac | |
parent | 7dbb914382ecd2074fffb7eba81d93262e2d23c6 (diff) |
docs: fix header parsing that was breaking misc config manpage
PR-URL: https://github.com/npm/cli/pull/656
Credit: @isaacs
Close: #656
Reviewed-by: @mikemimik
-rw-r--r-- | scripts/docs-build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/docs-build.js b/scripts/docs-build.js index e3cd2e982..390ea20be 100644 --- a/scripts/docs-build.js +++ b/scripts/docs-build.js @@ -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) |