Skip to content

Commit

Permalink
gen-changelog: appease standard
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Aug 22, 2018
1 parent 6a04d75 commit 8da8c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const log = execSync(`git log --reverse --pretty='format:%h %H%d %s (%aN)%n%b%n-
main()

function shortname (url) {
let matched = url.match(/https:\/\/github\.com\/([^/]+\/[^/]+)\/(?:pull|issues)\/(\d+)/)
|| url.match(/https:\/\/(npm\.community)\/t\/(\d+)/)
let matched = url.match(/https:\/\/github\.com\/([^/]+\/[^/]+)\/(?:pull|issues)\/(\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 8da8c82

Please sign in to comment.