Types/Filter

* do not split strings at \s if match:exact is set.
This commit is contained in:
Sarjuuk
2023-06-03 20:38:10 +02:00
parent d8d2676596
commit eca3e09482

View File

@@ -1359,7 +1359,7 @@ abstract class Filter
foreach ($fields as $n => $f)
{
$sub = [];
$parts = array_filter(explode(' ', $string));
$parts = $exact ? [$string] : array_filter(explode(' ', $string));
foreach ($parts as $p)
{
if ($p[0] == '-' && (mb_strlen($p) > 3 || $shortStr))