1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

improve performance

This commit is contained in:
Emanuil Rusev 2015-01-16 02:59:51 +02:00
parent 596350d1f5
commit 7ff0f97811

View File

@ -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( return array(
'markup' => $matches[0], 'markup' => $matches[0],