Fix incorrect trigramForName method

This commit is contained in:
Manuel Thalmann 2022-11-22 22:31:48 +01:00
parent c120592296
commit 92e901392b

View file

@ -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));
}