mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
improve performance
This commit is contained in:
parent
596350d1f5
commit
7ff0f97811
@ -1233,7 +1233,7 @@ class Parsedown
|
||||
);
|
||||
}
|
||||
|
||||
if (preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $excerpt, $matches))
|
||||
if ($excerpt[1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $excerpt, $matches))
|
||||
{
|
||||
return array(
|
||||
'markup' => $matches[0],
|
||||
|
Loading…
Reference in New Issue
Block a user