From d274dc4f27b43d49c6c95a7e1f2fd667f63ee8e2 Mon Sep 17 00:00:00 2001 From: Derek DeJonghe Date: Mon, 15 Jun 2020 17:28:06 -0400 Subject: [PATCH] change syntax --- semver/get_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semver/get_version.py b/semver/get_version.py index ae64ee1..8562e58 100644 --- a/semver/get_version.py +++ b/semver/get_version.py @@ -26,7 +26,7 @@ def get_version(build=0,version_format=None,dot=False): version_type = semver.get_version_type() p = subprocess.Popen(['bumpversion', '--dry-run', '--verbose', '--current-version', get_tag_version(), version_type], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd='.') bump_output = p.stderr.read().decode() - next_version = match = re.search("New version will be '([0-9]*.[0-9]*.[0-9]*)'", bump_output).group(1) + next_version = re.search("new_version=([0-9]*.[0-9]*.[0-9]*)", bump_output).group(1) if version_format == 'npm': return "{}-{}.{}".format(next_version,branch.replace('/','-'),build)