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(
|
return array(
|
||||||
'markup' => $matches[0],
|
'markup' => $matches[0],
|
||||||
|
|
Loading…
Reference in New Issue