update default getLinks regex

This commit is contained in:
ghost 2024-02-01 18:20:34 +02:00
parent 590096afef
commit 0ad8a9e998

View File

@ -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 = [];