Skip to content

Commit

Permalink
Update Worker.php
Browse files Browse the repository at this point in the history
[FIX] Fix Syntax Typo
  • Loading branch information
ThomasWeinert authored Jun 5, 2020
1 parent 8fcc743 commit d5ce14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Suggestion/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function suggest($term = '', $language) {
$term = preg_replace('(\s+$)u', '', $term);
$activeTerm = strtolower($term);
if (!preg_match('(\s|\\*)', $activeTerm)) {
$queryString = sprintf('%s*'. $this->connection()->escapeTerm($activeTerm));
$queryString = sprintf('%s*', $this->connection()->escapeTerm($activeTerm));
} else {
$queryString = $this->connection()->escapeTerm($activeTerm);
}
Expand Down

0 comments on commit d5ce14c

Please sign in to comment.