From 631d3f527f22ac166d4cee456aa67b6ffe48553d Mon Sep 17 00:00:00 2001 From: James Date: Mon, 23 Dec 2019 15:14:35 -0700 Subject: [PATCH] Fixes closing resolution --- lib/resolve-issue-number.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resolve-issue-number.js b/lib/resolve-issue-number.js index 267d767..5e4fd9b 100644 --- a/lib/resolve-issue-number.js +++ b/lib/resolve-issue-number.js @@ -12,7 +12,7 @@ module.exports = function extractIssueNumbers (...str) { return str.reduce((issueNumbers, s) => { // branch mode if (s.indexOf(' ') < 0) { - let brMatch = /#(\d+)/.exec(str); + let brMatch = /#(\d+)/.exec(s); if (brMatch && brMatch[1]) { issueNumbers.push(brMatch[1]); @@ -21,7 +21,7 @@ module.exports = function extractIssueNumbers (...str) { } // plain mode - let match = descMatching.exec(str); + let match = descMatching.exec(s); if (!match || !match[1]) { return issueNumbers;