SearchString fix

This commit is contained in:
salam committed 2026-02-18 17:55:37 +01:00
1 parent 16984b6886
commit 1ac74e3e4f
3 files changed
+61 -54

No files matched your search

+10 -1
View File
@@ -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;
}
}
+1
View File
@@ -280,6 +280,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
public function searchLeft($string)
{
$t = explode('|', $string);
$this->search_values = SearchString::explode($t[0]);
$this->search_color = $t[1];