Skip to content

Commit

Permalink
[5.x] Don't enforce a query length on comb searches (#10496)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Jul 23, 2024
1 parent d1373ba commit 40d535f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Search/Comb/Comb.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ private function testValidQuery($query)
{
$length = strlen($query);

if ($length === 0) {
if ($length === 0 && $this->min_characters > 0) {
throw new NoQuery('No query given.');
}

Expand Down

0 comments on commit 40d535f

Please sign in to comment.