mirror of
https://github.com/correl/mage.git
synced 2024-11-28 11:09:54 +00:00
small change to verify
This commit is contained in:
parent
68cf2a36c3
commit
b04e826c96
1 changed files with 7 additions and 4 deletions
|
@ -1488,6 +1488,13 @@ public class VerifyCardDataTest {
|
||||||
newRule = newRule.replaceAll("(?i) <i>\\(.+\\)</i>", "");
|
newRule = newRule.replaceAll("(?i) <i>\\(.+\\)</i>", "");
|
||||||
newRule = newRule.replaceAll("(?i) \\(.+\\)", "");
|
newRule = newRule.replaceAll("(?i) \\(.+\\)", "");
|
||||||
|
|
||||||
|
// fix specifically for mana abilities
|
||||||
|
if (newRule.startsWith("({T}: Add")) {
|
||||||
|
newRule = newRule
|
||||||
|
.replace("(", "")
|
||||||
|
.replace(")", "");
|
||||||
|
}
|
||||||
|
|
||||||
// replace special text and symbols
|
// replace special text and symbols
|
||||||
newRule = newRule
|
newRule = newRule
|
||||||
.replace("{this}", cardName)
|
.replace("{this}", cardName)
|
||||||
|
@ -1619,10 +1626,6 @@ public class VerifyCardDataTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
String refText = ref.text;
|
String refText = ref.text;
|
||||||
// lands fix
|
|
||||||
if (refText.startsWith("(") && refText.endsWith(")")) {
|
|
||||||
refText = refText.substring(1, refText.length() - 1);
|
|
||||||
}
|
|
||||||
// planeswalker fix [-7]: xxx
|
// planeswalker fix [-7]: xxx
|
||||||
refText = refText.replaceAll("\\[([\\−\\+]?\\d*)\\]\\: ", "$1: ").replaceAll("\\[\\−X\\]\\: ", "-X: ");
|
refText = refText.replaceAll("\\[([\\−\\+]?\\d*)\\]\\: ", "$1: ").replaceAll("\\[\\−X\\]\\: ", "-X: ");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue