From: Mischa POSLAWSKY Date: Sun, 17 May 2020 03:39:59 +0000 (+0200) Subject: article: ignore placeholders before teaser paragraph X-Git-Tag: v4.4~2 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/6fb9cdf658e15a2f774e0ad61b41fa7d8a9fa88d article: ignore placeholders before teaser paragraph --- 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]; }