mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16933] Consistent handling of hyphen by phpBB Native search backend
PHPBB3-16933
This commit is contained in:
@@ -253,6 +253,16 @@ class fulltext_native extends \phpbb\search\base
|
||||
$keywords[$i] = ' ';
|
||||
break;
|
||||
case '-':
|
||||
// Ignore hyphen if followed by a space
|
||||
if (isset($keywords[$i + 1]) && $keywords[$i + 1] == ' ')
|
||||
{
|
||||
$keywords[$i] = ' ';
|
||||
}
|
||||
else
|
||||
{
|
||||
$space = $keywords[$i];
|
||||
}
|
||||
break;
|
||||
case '+':
|
||||
$space = $keywords[$i];
|
||||
break;
|
||||
|
Reference in New Issue
Block a user