* Fixed deck import that can't recognize some cards with umlauts in name;

This commit is contained in:
Oleg Agafonov 2018-05-10 11:46:21 +04:00
parent 05d5f53c29
commit cf421aba22

View file

@ -110,7 +110,15 @@ public class TxtDeckImporter extends DeckImporter {
}
String lineNum = line.substring(0, delim).trim();
String lineName = line.substring(delim).replace("", "\'").trim();
lineName = lineName.replace("&", "//").replace("Æ", "Ae").replace("ö", "ö").replace("û", "u").replace("\"", "'");
lineName = lineName
.replace("&", "//")
.replace("Æ", "Ae")
.replace("ö", "o")
.replace("û", "u")
.replace("í", "i")
.replace("â", "a")
.replace("á", "a")
.replace("\"", "'");
if (lineName.contains("//") && !lineName.contains(" // ")) {
lineName = lineName.replace("//", " // ");
}