Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-01-06 03:19:03 +0300
committerMichael Perrotte <mike@npmjs.com>2020-01-23 22:46:00 +0300
commit7230e131511fc6e995c96160e6c3cf5fca76aa59 (patch)
treee08f413dcde2445df19152a7940bdce3df3ccaac /scripts
parent7dbb914382ecd2074fffb7eba81d93262e2d23c6 (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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/docs-build.js2
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)