From d3c628b4773d09a844589e142540bde2d994ddb4 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 1 Aug 2023 11:01:08 +0300 Subject: [PATCH] update Filter::searchQuery method --- library/filter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/filter.php b/library/filter.php index a1b4317..76cb20c 100644 --- a/library/filter.php +++ b/library/filter.php @@ -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);