mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Replace single slash with double slash in split card names when importing with TxtDeckImporter.java
This commit is contained in:
parent
91a3328907
commit
ec02774818
1 changed files with 3 additions and 4 deletions
|
@ -97,9 +97,8 @@ public class TxtDeckImporter extends PlainTextDeckImporter {
|
||||||
if (lineName.contains("//") && !lineName.contains(" // ")) {
|
if (lineName.contains("//") && !lineName.contains(" // ")) {
|
||||||
lineName = lineName.replace("//", " // ");
|
lineName = lineName.replace("//", " // ");
|
||||||
}
|
}
|
||||||
if (lineName.contains(" / ")) {
|
lineName = lineName.replaceFirst("(?<=[^/])\\s*/\\s*(?=[^/])", " // ");
|
||||||
lineName = lineName.replace(" / ", " // ");
|
|
||||||
}
|
|
||||||
if (IGNORE_NAMES.contains(lineName) || IGNORE_NAMES.contains(lineNum)) {
|
if (IGNORE_NAMES.contains(lineName) || IGNORE_NAMES.contains(lineNum)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue