From 0ad8a9e9981b8f82e0a61a1fc7af817057003e56 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 1 Feb 2024 18:20:34 +0200 Subject: [PATCH] update default getLinks regex --- src/Dokuwiki/Reader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dokuwiki/Reader.php b/src/Dokuwiki/Reader.php index ee18d94..9239170 100644 --- a/src/Dokuwiki/Reader.php +++ b/src/Dokuwiki/Reader.php @@ -267,7 +267,7 @@ class Reader } } - public function getLinks(string $gemini, ?string $regex = '/[A-z]+:\/\/\S+/'): array + public function getLinks(string $gemini, ?string $regex = '/(https?|gemini):\/\/\S+/'): array { $links = [];