mirror of
https://github.com/correl/mage.git
synced 2024-11-14 11:09:31 +00:00
* Fixed deck import that can't recognize some cards with umlauts in name;
This commit is contained in:
parent
05d5f53c29
commit
cf421aba22
1 changed files with 9 additions and 1 deletions
|
@ -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("//", " // ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue