mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Merge pull request #5570 from EvanMurawski/splitcardimport
Recognize split card names in mtggoldfish format
This commit is contained in:
commit
c6f0239bcd
1 changed files with 2 additions and 3 deletions
|
|
@ -97,9 +97,8 @@ public class TxtDeckImporter extends PlainTextDeckImporter {
|
|||
if (lineName.contains("//") && !lineName.contains(" // ")) {
|
||||
lineName = lineName.replace("//", " // ");
|
||||
}
|
||||
if (lineName.contains(" / ")) {
|
||||
lineName = lineName.replace(" / ", " // ");
|
||||
}
|
||||
lineName = lineName.replaceFirst("(?<=[^/])\\s*/\\s*(?=[^/])", " // ");
|
||||
|
||||
if (IGNORE_NAMES.contains(lineName) || IGNORE_NAMES.contains(lineNum)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue