Browse Source

update Filter::searchQuery method

main
ghost 1 year ago
parent
commit
d3c628b477
  1. 4
      library/filter.php

4
library/filter.php

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

Loading…
Cancel
Save