diff options
author | Kat Marchán <kzm@zkat.tech> | 2018-08-23 02:15:04 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-23 02:15:16 +0300 |
commit | 7eeacdba12a75bc11db3ab6067b05281afe67ccf (patch) | |
tree | b365b73d5093735dad0b29b72a2328d0ec4ab4e1 /scripts | |
parent | d4242d4291222bb68f136d430a8132dcdcdf3eca (diff) |
gen-changelog: fix npm.community url parsing
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/changelog.js | 2 |
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] |