mirror of
https://github.com/YGGverse/gemini-php.git
synced 2026-04-01 17:35:28 +00:00
fix getAddress regex condition
This commit is contained in:
parent
f5aebfe554
commit
55b13c4031
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue