File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class Comb
40
40
* Minimum characters to search over.
41
41
* @var int
42
42
*/
43
- private $ min_characters = 3 ;
43
+ private $ min_characters = 1 ;
44
44
45
45
/**
46
46
* Minimum characters per word to include word in search.
@@ -659,8 +659,8 @@ private function searchOverData($params, $raw_query)
659
659
*/
660
660
private function removeDisallowedMatches ($ params )
661
661
{
662
- $ disallowed = '# ' .join ('| ' , $ params ['disallowed ' ]).'#i ' ;
663
- $ required = '#(?=.* ' .join (')(?=.* ' , $ params ['required ' ]).')#i ' ;
662
+ $ disallowed = '# ' .implode ('| ' , $ params ['disallowed ' ]).'#i ' ;
663
+ $ required = '#(?=.* ' .implode (')(?=.* ' , $ params ['required ' ]).')#i ' ;
664
664
$ new_data = [];
665
665
666
666
// this only applies to boolean mode
@@ -1007,6 +1007,6 @@ public static function create($data, $config)
1007
1007
unset($ config ['limit ' ]);
1008
1008
}
1009
1009
1010
- return new Comb ($ data , $ config );
1010
+ return new self ($ data , $ config );
1011
1011
}
1012
1012
}
You can’t perform that action at this time.
0 commit comments