From dcf14e6ed4093fd464367806e2211bb4bec3c8ba Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 4 Feb 2020 22:36:11 +0100 Subject: [PATCH] issue: match image replies for metadata Database paragraphs not cleaned by editor lack preceding newline. --- article.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article.inc.php b/article.inc.php index d8ddf77..503c5a1 100644 --- a/article.inc.php +++ b/article.inc.php @@ -110,7 +110,7 @@ class ArchiveArticle function story() { if ( preg_match('{ - \n (?: < (?: p | figure [^>]* ) >\s* )+ (]*>) | \n + (?: < (?: p | figure [^>]* ) >\s* )+ (]*>) | \n }x', $this->body, $img, PREG_OFFSET_CAPTURE) ) { # strip part after matching divider (image) if (isset($img[1])) { -- 2.30.0