mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
optimize parsing of rule
This commit is contained in:
parent
64f82e1e2a
commit
7ab71ade06
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user