From dfbbfe6181e2012c7a846c6c7212449b306d4ad0 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Mon, 23 Nov 2020 02:43:30 -0500 Subject: [PATCH] Convert line endings and remove backslashes --- semver/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semver/__init__.py b/semver/__init__.py index 45a943a..e0075ee 100644 --- a/semver/__init__.py +++ b/semver/__init__.py @@ -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)