From eca3e09482cc18e316aed4d163d58042e134e38b Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 3 Jun 2023 20:38:10 +0200 Subject: [PATCH] Types/Filter * do not split strings at \s if match:exact is set. --- includes/basetype.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/basetype.class.php b/includes/basetype.class.php index 1b1f2994..cff32184 100644 --- a/includes/basetype.class.php +++ b/includes/basetype.class.php @@ -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))