Fixes closing resolution
This commit is contained in:
parent
1d50be0855
commit
631d3f527f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue