From ccc4a4328ffac2c3def288e2b3aff57ffb6f472a Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sat, 4 Apr 2020 00:02:51 +0200 Subject: [PATCH] Strip leading v from version tag --- PatchBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;