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