improve performance

This commit is contained in:
Emanuil Rusev 2015-01-16 02:59:51 +02:00
parent 596350d1f5
commit 7ff0f97811
1 changed files with 1 additions and 1 deletions

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