fix my mistake in meld regex (#4266)
This commit is contained in:
parent
d27f108cbd
commit
df0b867d9e
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet,
|
||||||
if (!getStringPropertyFromMap(card, "side").isEmpty()) {
|
if (!getStringPropertyFromMap(card, "side").isEmpty()) {
|
||||||
properties["cmc"] = getStringPropertyFromMap(card, "faceConvertedManaCost");
|
properties["cmc"] = getStringPropertyFromMap(card, "faceConvertedManaCost");
|
||||||
if (layout == "meld") { // meld cards don't work
|
if (layout == "meld") { // meld cards don't work
|
||||||
QRegularExpression meldNameRegex{"then meld them into ([\\.]*)"};
|
static const QRegularExpression meldNameRegex{"then meld them into ([^\\.]*)"};
|
||||||
QString additionalName = meldNameRegex.match(text).captured(1);
|
QString additionalName = meldNameRegex.match(text).captured(1);
|
||||||
if (!additionalName.isNull()) {
|
if (!additionalName.isNull()) {
|
||||||
relatedCards.append(new CardRelation(additionalName, true));
|
relatedCards.append(new CardRelation(additionalName, true));
|
||||||
|
|
Loading…
Reference in a new issue