mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 09:45:33 +00:00
fix regex rule
This commit is contained in:
parent
f62ab80959
commit
882f2aee2e
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class Link
|
|||
): bool
|
||||
{
|
||||
return (bool) preg_match(
|
||||
'/^=>(?<address>[^\s]+)(\s(?<date>\d{4}-\d{2}-\d{2}))?(\s(?<alt>.+))?$/m',
|
||||
'/^=>\s*(?<address>[^\s]+)(\s(?<date>\d{4}-\d{2}-\d{2}))?(\s(?<alt>.+))?$/m',
|
||||
$line,
|
||||
$matches
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue