diff --git a/src/js/github_jira.js b/src/js/github_jira.js index a852780..8d90536 100644 --- a/src/js/github_jira.js +++ b/src/js/github_jira.js @@ -15,9 +15,8 @@ if (window.location.hostname.match(/^.*git.*$/)) { elements.forEach((element) => { const text = element.innerHTML; const rewritten = text.replace( - /\[([a-zA-Z]+)-(\d+)\]/, - function (match, issuePrefix, issueNumber) { - const issueId = issuePrefix + '-' + issueNumber; + /([a-zA-Z]+-\d+)/, + function (match, issueId) { const issueUrl = jiraIssueBaseUrl + '/' + issueId; const replacement = `[${issueId}]`; return replacement;