Fixes closing resolution

This commit is contained in:
James 2019-12-23 15:14:35 -07:00 committed by GitHub
parent 1d50be0855
commit 631d3f527f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;