mirror of
https://github.com/YGGverse/gemini-php.git
synced 2025-03-13 06:01:58 +00:00
fix getAddress regex condition
This commit is contained in:
parent
f5aebfe554
commit
55b13c4031
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user