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
fe3dddcc6d41e6449a92aeaaee5fc18497fce53c- Author
- Martin Hořeňovský ·
- Parents
18ab353e5580
Changes
scripts/releaseCommon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/releaseCommon.py b/scripts/releaseCommon.py index 1c115c52..318fc262 100644 --- a/scripts/releaseCommon.py +++ b/scripts/releaseCommon.py @@ -129,8 +129,8 @@ def updateVersionDefine(version): def updateVersionPlaceholder(filename, version): with open(filename, 'rb') as file: lines = file.readlines() - placeholderRegex = re.compile(b' in Catch X.Y.Z') - replacement = ' in Catch {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii') + placeholderRegex = re.compile(b'in Catch X.Y.Z') + replacement = 'in Catch {}.{}.{}'.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))