issue: match image replies for metadata
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 4 Feb 2020 21:36:11 +0000 (22:36 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 4 Feb 2020 21:38:21 +0000 (22:38 +0100)
Database paragraphs not cleaned by editor lack preceding newline.

article.inc.php

index d8ddf77b990b374d25586da8a01501ad030d21b3..503c5a13869349c6f3ea0d450a3d1f9aa39edd05 100644 (file)
@@ -110,7 +110,7 @@ class ArchiveArticle
        function story()
        {
                if ( preg_match('{
-                       \n (?: < (?: p | figure [^>]* ) >\s* )+ (<img\ [^>]*>) | \n <hr\ />
+                       (?: < (?: p | figure [^>]* ) >\s* )+ (<img\ [^>]*>) | \n <hr\ />
                }x', $this->body, $img, PREG_OFFSET_CAPTURE) ) {
                        # strip part after matching divider (image)
                        if (isset($img[1])) {