Update regex
This commit is contained in:
		@ -20,7 +20,7 @@ NO_GIT_FLOW = Exception('No git flow branch found')
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class SemVer(object):
 | 
					class SemVer(object):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    GET_COMMIT_MESSAGE = re.compile(r"Merge (branch|pull request) '?(.+)'? (into|from) '?([\w\-]+)'?")
 | 
					    GET_COMMIT_MESSAGE = re.compile(r"Merge (branch|pull request) '?(.+)'? (into|from) (?:'(.+)'|[^\/]+\/(.+))")
 | 
				
			||||||
    # Merge pull request #1 from RightBrain-Networks/feature/PLAT-185-versioning
 | 
					    # Merge pull request #1 from RightBrain-Networks/feature/PLAT-185-versioning
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self,global_user=False):
 | 
					    def __init__(self,global_user=False):
 | 
				
			||||||
@ -57,7 +57,7 @@ class SemVer(object):
 | 
				
			|||||||
            if str(matches.group(4)) == branch:
 | 
					            if str(matches.group(4)) == branch:
 | 
				
			||||||
                self.merged_branch = matches.group(2)
 | 
					                self.merged_branch = matches.group(2)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                self.merged_branch = matches.group(4)
 | 
					                self.merged_branch = matches.group(5)
 | 
				
			||||||
            self.main_branch = branch
 | 
					            self.main_branch = branch
 | 
				
			||||||
        return bool(matches)
 | 
					        return bool(matches)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user