update Filter::searchQuery method

This commit is contained in:
ghost 2023-08-01 11:01:08 +03:00
parent 61a0652f51
commit d3c628b477

View File

@ -113,7 +113,7 @@ class Filter {
'ZONESPAN',
'PARAGRAPH',
'\\', '/', '~', '@', '!', '"', '(', ')', '|', '?', '%', '-', '>', '<', ':', ';', '^', '$'
'\\', '/', '~', '@', '!', '"', '(', ')', '[', ']', '|', '?', '%', '-', '>', '<', ':', ';', '^', '$'
];
foreach ($operators as $operator) {
@ -131,7 +131,7 @@ class Filter {
} else {
$query = sprintf('"%s" | (%s)', $query, str_replace(' ', ' | ', $query));
$query = sprintf('"%s" | (%s)', $query, str_replace(' ', '* MAYBE ', $query) . '*');
}
return trim($query);