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

Formatting fix

This commit is contained in:
Aidan Woods 2019-09-09 23:27:58 +01:00
parent bfdd0f29bc
commit 0a1e4bd802
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -161,10 +161,11 @@ final class Markup implements ContinuableBlock
return new self($rawLine, 6); return new self($rawLine, 6);
} }
if (! $isClosing && \preg_match( if (
'/^(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*(?:[ ]*+)[\/]?+[>](.*+)$/', ! $isClosing && \preg_match(
$tail, '/^(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*(?:[ ]*+)[\/]?+[>](.*+)$/',
$matches $tail,
$matches
) || $isClosing && \preg_match( ) || $isClosing && \preg_match(
'/^(?:[ ]*+)[\/]?+[>](.*+)$/', '/^(?:[ ]*+)[\/]?+[>](.*+)$/',
$tail, $tail,