Merge pull request #5570 from EvanMurawski/splitcardimport

Recognize split card names in mtggoldfish format
This commit is contained in:
Oleg Agafonov 2019-02-09 14:46:21 +04:00 committed by GitHub
commit c6f0239bcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}