|
|
@ -251,7 +251,7 @@ class Reader |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach ((array) explode(PHP_EOL, $gemini) as $line) |
|
|
|
foreach ((array) explode(PHP_EOL, $gemini) as $line) |
|
|
|
{ |
|
|
|
{ |
|
|
|
preg_match_all( |
|
|
|
preg_match( |
|
|
|
$regex, |
|
|
|
$regex, |
|
|
|
$line, |
|
|
|
$line, |
|
|
|
$matches |
|
|
|
$matches |
|
|
@ -266,6 +266,8 @@ class Reader |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getLinks(string $gemini, ?string $regex = '/(https?|gemini):\/\/\S+/'): array |
|
|
|
public function getLinks(string $gemini, ?string $regex = '/(https?|gemini):\/\/\S+/'): array |
|
|
|