Skip to content

Commit

Permalink
Merge pull request #4 from neilbartley/regex-update-numbers
Browse files Browse the repository at this point in the history
JIRA projects allow numbers in their key
  • Loading branch information
avilaton authored Aug 29, 2022
2 parents 051878d + 72f0693 commit 59fb9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add_msg_issue_prefix_hook/add_msg_issue_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def get_ticket_id_from_branch_name(branch):
matches = re.findall('[a-zA-Z]{1,10}-[0-9]{1,5}', branch)
matches = re.findall('[a-zA-Z0-9]{1,10}-[0-9]{1,5}', branch)
if len(matches) > 0:
return matches[0]

Expand Down

0 comments on commit 59fb9d6

Please sign in to comment.