Browse Source

fix getAddress regex condition

main
yggverse 9 months ago
parent
commit
55b13c4031
  1. 2
      src/Gemtext/Link.php

2
src/Gemtext/Link.php

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

Loading…
Cancel
Save