mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 13:34:25 +00:00
update Filter::searchQuery method
This commit is contained in:
parent
61a0652f51
commit
d3c628b477
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user