git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f7390
)
issue: match image replies for metadata
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 4 Feb 2020 21:36:11 +0000
(22:36 +0100)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/article.inc.php
b/article.inc.php
index d8ddf77b990b374d25586da8a01501ad030d21b3..503c5a13869349c6f3ea0d450a3d1f9aa39edd05 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-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])) {