From d4242d4291222bb68f136d430a8132dcdcdf3eca Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Wed, 22 Aug 2018 14:01:50 -0700 Subject: [PATCH] gen-changelog: appease standard --- scripts/changelog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/changelog.js b/scripts/changelog.js index 3cedb9efb6d2e..24f3588a50899 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]