Convert line endings and remove backslashes

This commit is contained in:
Layla 2020-11-23 02:43:30 -05:00
parent 8ba581e702
commit dfbbfe6181

View File

@ -61,7 +61,7 @@ class SemVer(object):
message = str(p.stdout.read())
branch = b.stdout.read().decode('utf-8').rstrip()
logger.info('Main branch is ' + branch)
matches = GET_COMMIT_MESSAGE.search(message)
matches = GET_COMMIT_MESSAGE.search(message.replace('\\n','\n').replace('\\',''))
if matches:
if str(matches.group(4)) == branch:
self.merged_branch = matches.group(2)