diff --git a/lib/issue-linker.js b/lib/issue-linker.js index 10abd0f..0b6ee47 100644 --- a/lib/issue-linker.js +++ b/lib/issue-linker.js @@ -3,7 +3,7 @@ * Based upon ../samples/post-processing.js */ -const TITLE_REGEX = /^([A-Z]+-\d+) (.*)$/; +const TITLE_REGEX = /^([A-Za-z]+-\d+) (.*)$/; const ISSUE_TRACKER_HOST = "https://virdocs.atlassian.net/browse/"; module.exports = function (data, callback) { @@ -11,7 +11,7 @@ module.exports = function (data, callback) { const matches = commit.title.match(TITLE_REGEX); if (matches && matches.length > 2) { // extra metadata to remember the linked tasks - commit.issue = matches[1]; + commit.issue = matches[1].toUpperCase(); commit.issueLink = ISSUE_TRACKER_HOST + commit.issue; // remove issue from the title