mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Types/Filter
* do not split strings at \s if match:exact is set.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user