diff --git a/flow/projecttracking/jira/jira.py b/flow/projecttracking/jira/jira.py index e809e9c..5bebde9 100644 --- a/flow/projecttracking/jira/jira.py +++ b/flow/projecttracking/jira/jira.py @@ -357,7 +357,7 @@ def extract_story_id_from_commit_messages(self, commit_messages): # verify there isn't a embedded bracket, if so just skip this one and keep marching. if stories.find('[') == -1: # there is a nested starting bracket # now dig out the tracker number or jira key in single number format or multiple separated by commas. - r = re.compile('(?:[a-zA-Z]+\-[0-9]+,?)+(,([a-zA-Z]+\-[0-9]+,?))*,?') + r = re.compile('(?:[a-zA-Z]+[a-zA-Z0-9]*\-[0-9]+,?)+(,([a-zA-Z]+[a-zA-Z0-9]*\-[0-9]+,?))*,?') stories_array = stories.split(',') stories = list(filter(r.match, stories_array)) for story in stories: