From 7eeacdba12a75bc11db3ab6067b05281afe67ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Wed, 22 Aug 2018 16:15:04 -0700 Subject: [PATCH] gen-changelog: fix npm.community url parsing --- scripts/changelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/changelog.js b/scripts/changelog.js index 24f3588a50899..c770b4ac400d5 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]