diff --git a/src/Parser/Link.php b/src/Parser/Link.php index b0b20c4..f954f0a 100644 --- a/src/Parser/Link.php +++ b/src/Parser/Link.php @@ -12,7 +12,7 @@ class Link ): bool { return (bool) preg_match( - '/^=>\s*(?
[^\s]+)(\s(?\d{4}-\d{2}-\d{2}))?(\s(?.+))?$/m', + '/^=>(?
[^\s]+)(\s(?\d{4}-\d{2}-\d{2}))?(\s(?.+))?$/m', $line, $matches ); diff --git a/src/Parser/Listing.php b/src/Parser/Listing.php index f0d2c05..885c935 100644 --- a/src/Parser/Listing.php +++ b/src/Parser/Listing.php @@ -12,7 +12,7 @@ class Listing ): bool { return (bool) preg_match( - '/^\*\s*(?.*)$/m', + '/^\*(?.*)$/m', $line, $matches ); diff --git a/src/Parser/Quote.php b/src/Parser/Quote.php index 507be4d..69e150e 100644 --- a/src/Parser/Quote.php +++ b/src/Parser/Quote.php @@ -12,7 +12,7 @@ class Quote ): bool { return (bool) preg_match( - '/^>\s*(?.*)$/m', + '/^>(?.*)$/m', $line, $matches );