mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
tests: improved verify ability texts to better support anchor words
This commit is contained in:
parent
9b34c322b5
commit
c6858085b6
1 changed files with 3 additions and 0 deletions
|
|
@ -2567,6 +2567,9 @@ public class VerifyCardDataTest {
|
|||
// becomes "Swampcycling {2}\nMountaincycling {2}"
|
||||
refText = splitCyclingAbilities(refText);
|
||||
|
||||
// ref text can contain dirty spaces after some text remove/fix, example: anchor words in Struggle for Project Purity
|
||||
refText = refText.replaceAll(" +", " ");
|
||||
|
||||
String[] refRules = refText.split("[\\$\\\n]"); // ref card's abilities can be splited by \n or $ chars
|
||||
for (int i = 0; i < refRules.length; i++) {
|
||||
refRules[i] = prepareRule(card.getName(), refRules[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue