Skip to content

Commit 900a6d5

Browse files
committed
Release script also recognizes version placeholders in 'vX.Y.Z' form
1 parent 1aa6fa2 commit 900a6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/scripts/releaseCommon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def updateVersionDefine(version):
114114
def updateVersionPlaceholder(filename, version):
115115
with open(filename, 'rb') as file:
116116
lines = file.readlines()
117-
placeholderRegex = re.compile(b'Catch[0-9]? X.Y.Z')
117+
placeholderRegex = re.compile(b'Catch[0-9]? v?X.Y.Z')
118118
replacement = 'Catch2 {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii')
119119
with open(filename, 'wb') as file:
120120
for line in lines:

0 commit comments

Comments
 (0)