diff --git a/PatchObject.php b/PatchObject.php index 4fda734..053d17b 100644 --- a/PatchObject.php +++ b/PatchObject.php @@ -40,7 +40,7 @@ class PatchObject { } function setVersion(string $version, bool $trim = false) { if ($trim) { - $version = preg_replace('/^(release-|RELEASE\.|v)/', '', $version); + $version = preg_replace('/^(release|RELEASE|v)[-\.]?/', '', $version); } $this->version = $version; }