mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +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
|
): bool
|
||||||
{
|
{
|
||||||
return (bool) preg_match(
|
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,
|
$line,
|
||||||
$matches
|
$matches
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Listing
|
||||||
): bool
|
): bool
|
||||||
{
|
{
|
||||||
return (bool) preg_match(
|
return (bool) preg_match(
|
||||||
'/^\*\s*(?<item>.*)$/m',
|
'/^\*(?<item>.*)$/m',
|
||||||
$line,
|
$line,
|
||||||
$matches
|
$matches
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Quote
|
||||||
): bool
|
): bool
|
||||||
{
|
{
|
||||||
return (bool) preg_match(
|
return (bool) preg_match(
|
||||||
'/^>\s*(?<text>.*)$/m',
|
'/^>(?<text>.*)$/m',
|
||||||
$line,
|
$line,
|
||||||
$matches
|
$matches
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue