mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Made the dck importer work with arbitary set codes and card ids.
This commit is contained in:
parent
652672ee45
commit
37d93fa537
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ import mage.cards.repository.CardRepository;
|
||||||
*/
|
*/
|
||||||
public class DckDeckImporter extends DeckImporter {
|
public class DckDeckImporter extends DeckImporter {
|
||||||
|
|
||||||
private static final Pattern pattern = Pattern.compile("(SB:)?\\s*(\\d*)\\s*\\[([a-zA-Z0-9]{2,5}):([0-9]*[a-z]*)\\].*");
|
private static final Pattern pattern = Pattern.compile("(SB:)?\\s*(\\d*)\\s*\\[([^]:]+):([^]:]+)\\].*");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void readLine(String line, DeckCardLists deckList) {
|
protected void readLine(String line, DeckCardLists deckList) {
|
||||||
|
|
Loading…
Reference in a new issue