Skip to content

Commit a1a8f79

Browse files
committed
replace - with -- in download badge
1 parent a47523d commit a1a8f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/releasing/update-version-README.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function updateVersionReadme() {
7575
local -r versionWithoutLeadingV="${version:1}"
7676

7777
perl -0777 -i \
78-
-pe "s@(\[!\[Download\]\(https://img.shields.io/badge/Download-).*(-%23[0-9a-f]+\)\]\([^\)]+(?:=|/))v[^\)]+\)@\${1}$version\${2}$version\)@g;" \
79-
-pe "s@(\[!\[Download\]\(https://img.shields.io/badge/Download-).*(-%23[0-9a-f]+\)\]\([^\)]+(?:=|/))[0-9][^\)]+\)@\${1}$version\${2}$versionWithoutLeadingV\)@g;" \
78+
-pe "s@(\[!\[Download\]\(https://img.shields.io/badge/Download-).*(-%23[0-9a-f]+\)\]\([^\)]+(?:=|/))v[^\)]+\)@\${1}${version//-//--}\${2}$version\)@g;" \
79+
-pe "s@(\[!\[Download\]\(https://img.shields.io/badge/Download-).*(-%23[0-9a-f]+\)\]\([^\)]+(?:=|/))[0-9][^\)]+\)@\${1}${version//-//--}\${2}$versionWithoutLeadingV\)@g;" \
8080
-pe "s@(\[README of )[^\]]+(\].*/tree/)[^/]+/@\${1}$version\${2}$version/@;" \
8181
"$file" || returnDying "was not able to update the version in download badges and in the sneak peek banner" || return $?
8282

0 commit comments

Comments
 (0)