mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +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
|
): bool
|
||||||
{
|
{
|
||||||
return (bool) preg_match(
|
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,
|
$line,
|
||||||
$matches
|
$matches
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue