Skip to content

Commit

Permalink
Restored checking if token contains wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Nov 30, 2023
1 parent 6eb741e commit d126a4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function tokenizeString($string)
*/
protected function getWordExpression(QueryBuilder $query, string $token): string
{
if ($this->configuration['enableWildcards']) {
if ($this->configuration['enableWildcards'] && str_contains('*', $token)) {
$hasLeadingWildcard = str_starts_with($token, '*');
$hasTrailingWildcard = str_ends_with($token, '*');

Expand Down

0 comments on commit d126a4b

Please sign in to comment.