removed whitespace on empty lines

This commit is contained in:
crowjake 2024-07-07 18:29:15 +01:00 committed by GitHub
parent e9c08a1689
commit c35ca3b747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -299,10 +299,10 @@ class fulltext_native extends \phpbb\search\base
);
$keywords = preg_replace($match, $replace, $keywords);
// Ensure a space exists before +, - and | to make the split and count work correctly
$countable_keywords = preg_replace('/(?<!\s)(\+|\-|\|)/', ' $1', $keywords);
$num_keywords = count(explode(' ', $countable_keywords));
// We limit the number of allowed keywords to minimize load on the database