fix(parser): resource URL should only be parsed if there is one
This commit is contained in:
parent
31992f4d02
commit
1799081ebd
1 changed files with 5 additions and 1 deletions
|
|
@ -43,7 +43,11 @@ public function parse(string $imageString): self
|
|||
|
||||
public function getFullImageNameWithoutTag(): string
|
||||
{
|
||||
return $this->registryUrl.'/'.$this->imageName;
|
||||
if ($this->registryUrl) {
|
||||
return $this->registryUrl.'/'.$this->imageName;
|
||||
}
|
||||
|
||||
return $this->imageName;
|
||||
}
|
||||
|
||||
public function getRegistryUrl(): string
|
||||
|
|
|
|||
Loading…
Reference in a new issue