Fixing the card importer failing when the "x2" came after the card name

This commit is contained in:
Christian 'ketura' McCarty
2023-03-16 21:37:38 -05:00
parent c6095126a6
commit 21f9456be0

View File

@@ -71,7 +71,7 @@ public class ImportCards {
}
}
private Pattern cardLinePattern = Pattern.compile("^(x?\\s*\\d+\\s*x?)?\\s*(.*)\\s*(x?\\d+x?)?\\s*$");
private Pattern cardLinePattern = Pattern.compile("^(x?\\s*\\d+\\s*x?)?\\s*(.*?)\\s*(x?\\d+x?)?\\s*$");
private List<CardCount> getDecklist(String rawDecklist) {
int quantity;