Strip leading v from version tag
This commit is contained in:
parent
44b2a37a65
commit
ccc4a4328f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue