fix getAddress regex condition

This commit is contained in:
yggverse 2024-04-10 14:43:27 +03:00
parent f5aebfe554
commit 55b13c4031

View File

@ -15,7 +15,7 @@ class Link
public function getAddress(): ?string public function getAddress(): ?string
{ {
if (preg_match('/^([^\s]+)\s.*/', trim($this->_line), $match)) if (preg_match('/^=>\s*([^\s]+)/', trim($this->_line), $match))
{ {
return trim( return trim(
$match[1] $match[1]