mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-06 21:00:50 +02:00
optimize parsing of rule
This commit is contained in:
@@ -145,7 +145,7 @@ class Parsedown
|
||||
|
||||
# Rule
|
||||
|
||||
if (isset($line) and preg_match('/^[ ]{0,3}([-*_])([ ]{0,2}\1){2,}[ ]*$/', $line))
|
||||
if (isset($line) and $line !== '' and preg_match('/^[ ]{0,3}([-*_])([ ]{0,2}\1){2,}[ ]*$/', $line))
|
||||
{
|
||||
$rule = true;
|
||||
|
||||
|
Reference in New Issue
Block a user