diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 1d23980..3b070a7 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -231,9 +231,10 @@ class ApiQueryExtracts extends ApiQueryBase { */ private function getFirstSection( $text, $plainText ) { if ( $plainText ) { - $regexp = '/^(.*?)(?=' . ExtractFormatter::SECTION_MARKER_START . ')/s'; + $regexp = '/^.*?(?=' . ExtractFormatter::SECTION_MARKER_START . + '(?!.' . ExtractFormatter::SECTION_MARKER_END . '