File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments