remove extra condition

This commit is contained in:
yggverse 2024-06-24 03:46:32 +03:00
parent fd71028615
commit ca9d927488
3 changed files with 3 additions and 3 deletions

View file

@ -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
);

View file

@ -12,7 +12,7 @@ class Listing
): bool
{
return (bool) preg_match(
'/^\*\s*(?<item>.*)$/m',
'/^\*(?<item>.*)$/m',
$line,
$matches
);

View file

@ -12,7 +12,7 @@ class Quote
): bool
{
return (bool) preg_match(
'/^>\s*(?<text>.*)$/m',
'/^>(?<text>.*)$/m',
$line,
$matches
);