Skip to content

Commit

Permalink
Make tab completions on usernames case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
pop4959 committed Jul 28, 2019
1 parent b8420ac commit 2c9049f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/griefcraft/util/Completions.java
Expand Up @@ -81,7 +81,7 @@ public static List<String> integers(String term) {
}

private static List<String> filter(List<String> list, String term) {
return list.stream().filter(e -> e.startsWith(term)).collect(Collectors.toList());
return list.stream().filter(e -> e.toLowerCase().startsWith(term.toLowerCase())).collect(Collectors.toList());
}

}

0 comments on commit 2c9049f

Please sign in to comment.