catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix updateVersionPlaceholder when the placeholder starts the line
- Commit
23760327aeac5dfb441af28cb71ef9ee5c38b2c4- Author
- Martin Hořeňovský ·
- Parents
48f220b68a7c
Changes
tools/scripts/releaseCommon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/scripts/releaseCommon.py b/tools/scripts/releaseCommon.py index fcf7f1a0..925e8014 100644 --- a/tools/scripts/releaseCommon.py +++ b/tools/scripts/releaseCommon.py @@ -127,8 +127,8 @@ def updateVersionDefine(version): def updateVersionPlaceholder(filename, version): with open(filename, 'rb') as file: lines = file.readlines() - placeholderRegex = re.compile(b' in Catch[0-9]? X.Y.Z') - replacement = ' in Catch2 {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii') + placeholderRegex = re.compile(b'in Catch[0-9]? X.Y.Z') + replacement = 'in Catch2 {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii') with open(filename, 'wb') as file: for line in lines: file.write(placeholderRegex.sub(replacement, line))