Skip to content

Commit bb0852b

Browse files
committed
Fix #11 - Don't double % in fuzzy search
1 parent 463f3ee commit bb0852b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Search/QueryBuilder/FuzzyWord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(string $word, int $levenshteinDistance = 1)
4545

4646
public function render(): string
4747
{
48-
return sprintf('%1$s%2$s%1$s', str_repeat('%%', $this->levenshteinDistance), EscapeHelper::escapeFuzzy($this->word));
48+
return sprintf('%1$s%2$s%1$s', str_repeat('%', $this->levenshteinDistance), EscapeHelper::escapeFuzzy($this->word));
4949
}
5050

5151
public function includeSpace(): bool

0 commit comments

Comments
 (0)