Skip to content

Commit

Permalink
gen-changelog: fix npm.community url parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Aug 22, 2018
1 parent d4242d4 commit 7eeacdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7eeacdb

Please sign in to comment.