From 2bc33dd04d922429e1d843661bec78b7a697de2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Wed, 10 Jan 2018 14:01:20 +0100 Subject: [PATCH] Fix script responsible for updating release link in the readme --- README.md | 2 +- scripts/releaseCommon.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 207ba30e..e82aea00 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![codecov](https://codecov.io/gh/catchorg/Catch2/branch/master/graph/badge.svg)](https://codecov.io/gh/catchorg/Catch2) [![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/nerce2MiN6sVmfCi) -The latest version of the single header can be downloaded directly using this link +The latest version of the single header can be downloaded directly using this link ## Catch2 is released! diff --git a/scripts/releaseCommon.py b/scripts/releaseCommon.py index 56c9e0d3..f5efa7ed 100644 --- a/scripts/releaseCommon.py +++ b/scripts/releaseCommon.py @@ -80,7 +80,7 @@ class Version: def updateReadmeFile(version): import updateWandbox - downloadParser = re.compile( r'' ) + downloadParser = re.compile( r'' ) success, wandboxLink = updateWandbox.uploadFiles() if not success: print('Error when uploading to wandbox: {}'.format(wandboxLink)) @@ -92,7 +92,7 @@ def updateReadmeFile(version): f.close() f = open( readmePath, 'w' ) for line in lines: - line = downloadParser.sub( r''.format(version.getVersionString()) , line) + line = downloadParser.sub( r''.format(version.getVersionString()) , line) if '[![Try online](https://img.shields.io/badge/try-online-blue.svg)]' in line: line = '[![Try online](https://img.shields.io/badge/try-online-blue.svg)]({0})'.format(wandboxLink) f.write( line + "\n" )