diff --git a/PatchBase.php b/PatchBase.php index 4d6347e..d2f1975 100644 --- a/PatchBase.php +++ b/PatchBase.php @@ -42,7 +42,7 @@ abstract class PatchBase { protected function parse_json(string $key) : bool { $flat = iterator_to_array(new \RecursiveIteratorIterator(new \RecursiveArrayIterator($this->data))); if (!empty($flat[$key])) { - $this->patch->setVersion($flat[$key]); + $this->patch->setVersion(ltrim($flat[$key], 'v')); return true; } return false;