Fix incorrect trigramForName
method
This commit is contained in:
parent
c120592296
commit
92e901392b
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public class FuzzySearchServer implements CommandExecutor {
|
|||
name = nomalize(name);
|
||||
// TODO implement
|
||||
|
||||
for (int i = 0; i < name.length() - 3; i++) {
|
||||
for (int i = 0; i <= name.length() - 3; i++) {
|
||||
result.add(name.substring(i, i + 3));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue