Tidy up version string
This commit is contained in:
parent
5b023d1972
commit
6165a1e4b3
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class PatchObject {
|
||||||
}
|
}
|
||||||
function setVersion(string $version, bool $trim = false) {
|
function setVersion(string $version, bool $trim = false) {
|
||||||
if ($trim) {
|
if ($trim) {
|
||||||
$version = preg_replace('/^(release-|RELEASE\.|v)/', '', $version);
|
$version = preg_replace('/^(release|RELEASE|v)[-\.]?/', '', $version);
|
||||||
}
|
}
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue