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:
authorKat Marchán <kzm@zkat.tech>2018-08-23 02:15:04 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-23 02:15:16 +0300
commit7eeacdba12a75bc11db3ab6067b05281afe67ccf (patch)
treeb365b73d5093735dad0b29b72a2328d0ec4ab4e1 /scripts
parentd4242d4291222bb68f136d430a8132dcdcdf3eca (diff)
gen-changelog: fix npm.community url parsing
Diffstat (limited to 'scripts')
-rw-r--r--scripts/changelog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js
index 24f3588a5..c770b4ac4 100644
--- a/scripts/changelog.js
+++ b/scripts/changelog.js
@@ -19,7 +19,7 @@ main()
function shortname (url) {
let matched = url.match(/https:\/\/github\.com\/([^/]+\/[^/]+)\/(?:pull|issues)\/(\d+)/) ||
- url.match(/https:\/\/(npm\.community)\/t\/(\d+)/)
+ url.match(/https:\/\/(npm\.community)\/t\/(?:[^/]+\/)(\d+)/)
if (!matched) return false
let repo = matched[1]
let id = matched[2]