Release 2.60 (#5971)

This commit is contained in:
Kevin Papst
2026-06-10 12:39:54 +02:00
committed by GitHub
parent 8ed666c0eb
commit a2c1c71cfc
26 changed files with 252 additions and 145 deletions

View File

@@ -21,7 +21,10 @@ final class SearchTerm
public function __construct(string $searchTerm)
{
$this->originalTerm = $searchTerm;
$terms = explode(' ', $searchTerm);
$terms = preg_split('/\s+/', trim($searchTerm), -1, PREG_SPLIT_NO_EMPTY);
if (!\is_array($terms)) {
$terms = [];
}
$finalTerm = [];
foreach ($terms as $term) {