mirror of
https://github.com/YGGverse/gemini-php.git
synced 2026-03-31 17:05:29 +00:00
fix getH1 response
This commit is contained in:
parent
d80dfce235
commit
79fd257589
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue