Tidy up GitHub release tags
This commit is contained in:
parent
81ec34b7f9
commit
2694df1973
2 changed files with 5 additions and 2 deletions
|
|
@ -38,7 +38,10 @@ class PatchObject {
|
|||
function getVersion() : string {
|
||||
return $this->version;
|
||||
}
|
||||
function setVersion(string $version) {
|
||||
function setVersion(string $version, bool $trim = false) {
|
||||
if ($trim) {
|
||||
$version = preg_replace('/^(release-|v)/', '', $version);
|
||||
}
|
||||
$this->version = $version;
|
||||
}
|
||||
function getURL() : string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue