Strip leading v from version tag

This commit is contained in:
Steffen Lange 2020-04-04 00:02:51 +02:00
parent 44b2a37a65
commit ccc4a4328f

View file

@ -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;