diff --git a/src/Dokuwiki/Reader.php b/src/Dokuwiki/Reader.php index 55dcf3d..ffd0a47 100644 --- a/src/Dokuwiki/Reader.php +++ b/src/Dokuwiki/Reader.php @@ -251,7 +251,7 @@ class Reader { foreach ((array) explode(PHP_EOL, $gemini) as $line) { - preg_match_all( + preg_match( $regex, $line, $matches @@ -266,6 +266,8 @@ class Reader break; } } + + return null; } public function getLinks(string $gemini, ?string $regex = '/(https?|gemini):\/\/\S+/'): array