Skip to content

Commit

Permalink
Look just for 'Catch2 X.Y.Z' in doc placeholder update
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Dec 10, 2023
1 parent d4e9fb8 commit 1648c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/scripts/releaseCommon.py
Expand Up @@ -114,8 +114,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'Catch[0-9]? X.Y.Z')
replacement = '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))
Expand Down

0 comments on commit 1648c30

Please sign in to comment.