mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-11 18:23:48 +00:00
Limiting spelling suggesions to the five cloest matches
This commit is contained in:
parent
38e8a0dcc7
commit
287ceca85f
@ -247,7 +247,7 @@ public class MythosEditor {
|
||||
message
|
||||
.append(source.word)
|
||||
.append(": ")
|
||||
.append(suggestions.stream().map(Suggestion::getWord).collect(Collectors.joining(", ")))
|
||||
.append(suggestions.stream().map(Suggestion::getWord).limit(5).collect(Collectors.joining(",")))
|
||||
.append("\n");
|
||||
});
|
||||
return message.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user