From 6fb9cdf658e15a2f774e0ad61b41fa7d8a9fa88d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 17 May 2020 05:39:59 +0200 Subject: [PATCH] article: ignore placeholders before teaser paragraph --- article.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article.inc.php b/article.inc.php index dbc545f..2f5b873 100644 --- a/article.inc.php +++ b/article.inc.php @@ -132,7 +132,7 @@ class ArchiveArticle $offset = strpos($this->raw, ''); $offset = $offset ? $offset + 5 : 0; if (preg_match('{ - \G (?: \s+ | |
]*> )*

\s* (.*?)

+ \G (?> \s+ | |
]*> | \[\[[^]]*\]\] )*

\s* (.*?)

}sx', $this->raw, $bodyp, 0, $offset)) { return $bodyp[1]; } -- 2.30.0