import: Allow import no space at end

This commit is contained in:
Calcitem 2021-06-12 02:08:27 +08:00
parent 6db98f3f8e
commit 037444d1d9
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class GameRecorder {
void import(String moveList) { void import(String moveList) {
List<Move> newHistory = []; List<Move> newHistory = [];
List<String> list = moveList.toLowerCase().split(' '); List<String> list = moveList.toLowerCase().replaceAll('\n', ' ').split(' ');
for (var i in list) { for (var i in list) {
i = i.trim(); i = i.trim();