mirror of
https://github.com/correl/mage.git
synced 2025-02-27 03:45:09 +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 lineNum = line.substring(0, delim).trim();
|
||||||
String lineName = line.substring(delim).replace("’", "\'").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(" // ")) {
|
if (lineName.contains("//") && !lineName.contains(" // ")) {
|
||||||
lineName = lineName.replace("//", " // ");
|
lineName = lineName.replace("//", " // ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue