Skip to content

Commit

Permalink
Merge pull request #2 from PRNDcompany/feature/extract-regex-improve
Browse files Browse the repository at this point in the history
  • Loading branch information
ted-prnd authored Nov 22, 2023
2 parents d437702 + 6d85d39 commit fbcad20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function extractJiraIssueKeys(commitMessages: string[]): string[] {
}

function getJiraVersionName(branchName: string, jiraVersionPrefix?: string): string | null {
const regex = new RegExp(`release/(\\d+\\.\\d+\\.\\d+)`, "g")
const regex = new RegExp(`/(\\d+\\.\\d+\\.\\d+)`, "g")
const matches: string[] | null = regex.exec(branchName)
if (matches == null) {
return null
Expand Down

0 comments on commit fbcad20

Please sign in to comment.