Made the dck importer work with arbitary set codes and card ids.

This commit is contained in:
Lymia Aluysia 2016-09-26 10:11:39 -05:00
parent 652672ee45
commit 37d93fa537
No known key found for this signature in database
GPG key ID: DB2E204C989251F7

View file

@ -40,7 +40,7 @@ import mage.cards.repository.CardRepository;
*/
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
protected void readLine(String line, DeckCardLists deckList) {