mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
removed whitespace on empty lines
This commit is contained in:
parent
e9c08a1689
commit
c35ca3b747
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue