Progmasoft Git

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

Release script also recognizes version placeholders in 'vX.Y.Z' form

Commit
900a6d55167d415736c8233354e40f8f07a35d36
Author
Martin Hořeňovský ·
Parents
1aa6fa215c24

Files · Download .tar.gz

Changes

 tools/scripts/releaseCommon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/scripts/releaseCommon.py b/tools/scripts/releaseCommon.py
index 81efa762..920fb98c 100644
--- a/tools/scripts/releaseCommon.py
+++ b/tools/scripts/releaseCommon.py
@@ -114,7 +114,7 @@ def updateVersionDefine(version):
 def updateVersionPlaceholder(filename, version):
     with open(filename, 'rb') as file:
         lines = file.readlines()
-    placeholderRegex = re.compile(b'Catch[0-9]? X.Y.Z')
+    placeholderRegex = re.compile(b'Catch[0-9]? v?X.Y.Z')
     replacement = 'Catch2 {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii')
     with open(filename, 'wb') as file:
         for line in lines: