Deck Editor load deck files: Fixed that also set codes with length of 2 or 4 chars work.

This commit is contained in:
LevelX2 2015-01-02 19:35:15 +01:00
parent 8fbb39990d
commit f3d8a26574

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]{3}):(\\d*)\\].*");
private static final Pattern pattern = Pattern.compile("(SB:)?\\s*(\\d*)\\s*\\[([a-zA-Z0-9]{2,4}):(\\d*)\\].*");
@Override
protected void readLine(String line, DeckCardLists deckList) {