From 55b13c4031fdc16c66b89b3f1d4ee9ca704e22d6 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 10 Apr 2024 14:43:27 +0300 Subject: [PATCH] fix getAddress regex condition --- src/Gemtext/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gemtext/Link.php b/src/Gemtext/Link.php index f7ed077..a479257 100644 --- a/src/Gemtext/Link.php +++ b/src/Gemtext/Link.php @@ -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]