mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Substr over indexing string
This commit is contained in:
@@ -67,7 +67,10 @@ final class BlockQuote implements ContinuableBlock
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($Context->line()->text()[0] === '>' && \preg_match('/^(>[ \t]?+)(.*+)/', $Context->line()->text(), $matches)) {
|
||||
if (
|
||||
\substr($Context->line()->text(), 0, 1) === '>'
|
||||
&& \preg_match('/^(>[ \t]?+)(.*+)/', $Context->line()->text(), $matches)
|
||||
) {
|
||||
$indentOffset = $Context->line()->indentOffset() + $Context->line()->indent() + \strlen($matches[1]);
|
||||
|
||||
$recoveredSpaces = 0;
|
||||
|
||||
Reference in New Issue
Block a user