1
0
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:
Emanuil 2013-09-20 02:12:06 +03:00
parent 64f82e1e2a
commit 7ab71ade06

View File

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