diff options
author | Rebecca Turner <me@re-becca.org> | 2018-08-23 00:01:50 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-23 02:12:37 +0300 |
commit | d4242d4291222bb68f136d430a8132dcdcdf3eca (patch) | |
tree | 58339967e50d9c06b7f5b50bab4967094b6424c9 /scripts | |
parent | bced18e52cd2f28dd7242d99569b452a7f3da11d (diff) |
gen-changelog: appease standard
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/changelog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js index 3cedb9efb..24f3588a5 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -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] |