Skip to content

Commit 7da8e24

Browse files
authored
Merge pull request #106 from n1crack/dev
Update QueryBuilder.php
2 parents f849d5c + 99218da commit 7da8e24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/QueryBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ protected function filterGlobal(Query $query): string
227227

228228
$search = [];
229229

230-
foreach (explode(' ', $searchInput) as $word) {
230+
$searchKeywords = $this->db->isExactMatch() ? [$searchInput] : explode(' ', $searchInput);
231+
232+
foreach ($searchKeywords as $word) {
231233
$look = [];
232234

233235
foreach ($columns as $column) {

0 commit comments

Comments
 (0)