SearchString fix
This commit is contained in:
1 parent
16984b6886
commit
1ac74e3e4f
3 files changed
+61
-54
No files matched your search
@@ -8,6 +8,15 @@ class SearchString
|
||||
{
|
||||
$string = str_replace([',', '/', '&'], '', $string);
|
||||
|
||||
return preg_split('/\s+/', $string, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$tmp = preg_split('/\s+/', $string, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
$return = [];
|
||||
foreach ($tmp as $value) {
|
||||
if (strlen($value) > 1) {
|
||||
$return[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user