Update Rewrite-DraftReleaseTag.ps1

Former-commit-id: 861e56e895abfc710ea63cf61ee0b29e7a740b95 [formerly f00a03344f0ab4f7df3aa26c5b70d69dbad2540f [formerly 059425ad3ba51b8ee3c276a3f9d9885201db396a]]
Former-commit-id: 54e2860e37834961371b0429dc7209077c3b7990 [formerly 1e2922efc2001c557704ef832527a3fa1405f567]
Former-commit-id: 9ee01de68192091b5c19254e18b110019a77a9a8
This commit is contained in:
Jaifroid 2022-06-06 00:45:42 +01:00
parent ed1b25c9fd
commit 5f23e17a4e

View File

@ -16,7 +16,7 @@ if ($INPUT_VERSION) {
if ($from -match '^v[0-9.]+(-WikiMed|-Wikivoyage)?$') {
$to = $from -replace '^(v[0-9.]+)(.*)$', '$1-E'
} elseif ($from -cmatch '^v[0-9.]+-E') {
$to = $from -creplace '-E', ''
$to = $INPUT_VERSION
}
}