aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-21 13:36:58 -0800
committerzotlabs <mike@macgirvin.com>2017-12-21 13:36:58 -0800
commitf825e27f1af71ba873f5698cad433bc017760556 (patch)
tree6c0c55b71f1cdb6abdbe4157a43d3af3281b9560 /vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php
parentc087d1e18b32f62d126cb01accbdeff21f5c1107 (diff)
parent9c72963d7ce3c60709755edb5d40cb0b06b29cda (diff)
downloadvolse-hubzilla-f825e27f1af71ba873f5698cad433bc017760556.tar.gz
volse-hubzilla-f825e27f1af71ba873f5698cad433bc017760556.tar.bz2
volse-hubzilla-f825e27f1af71ba873f5698cad433bc017760556.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php')
-rw-r--r--vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php b/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php
index cf852bfcf..7207b81a6 100644
--- a/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php
+++ b/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php
@@ -109,7 +109,8 @@ class ParagraphConverter implements ConverterInterface
{
$regExs = array(
// Match numbers ending on ')' or '.' that are at the beginning of the line.
- '/^[0-9]+(?=\)|\.)/'
+ // They will be escaped if immediately followed by a space or newline.
+ '/^[0-9]+(?=(\)|\.)( |$))/'
);
foreach ($regExs as $i) {