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

Make it clearer this is one backslash character

This commit is contained in:
Aidan Woods 2019-01-22 20:51:09 +00:00
parent 74bba0b2fa
commit 51c3d9d445
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -57,7 +57,7 @@ final class PlainText implements Inline
$text = \preg_replace('/(?<![ \t])[ ]\n/', "$1\n", $text);
while (\preg_match('/(?:[ ]*+\\\\|[ ]{2,}+)\n/', $text, $matches, \PREG_OFFSET_CAPTURE)) {
while (\preg_match('/(?:[ ]*+[\\\]|[ ]{2,}+)\n/', $text, $matches, \PREG_OFFSET_CAPTURE)) {
$offset = \intval($matches[0][1]);
$before = \substr($text, 0, $offset);
$after = \substr($text, $offset + \strlen($matches[0][0]));