forked from External/mage
deck: fixed outdated names for some old sets (part 2)
This commit is contained in:
parent
166ecb98d0
commit
7d5b117263
18 changed files with 668 additions and 667 deletions
|
|
@ -904,13 +904,14 @@ public class VerifyCardDataTest {
|
|||
String needClassName = Arrays.stream(
|
||||
set.getName()
|
||||
.replaceAll("&", "And")
|
||||
.replaceAll("30th", "Thirtieth")
|
||||
.replaceAll("^(\\d+)", "The$1") // replace starting "2007 xxx" by "The2007"
|
||||
.replace("-", " ")
|
||||
.replaceAll("[.+-/:\"']", "")
|
||||
.split(" ")
|
||||
).map(CardUtil::getTextWithFirstCharUpperCase).reduce("", String::concat);
|
||||
|
||||
if (!className.equals(needClassName)) {
|
||||
// if set name start with a numbers then add "The" at the start
|
||||
errorsList.add("Error: set's class name must be equal to set name: "
|
||||
+ className + " from " + set.getClass().getName() + ", caption: " + set.getName() + ", need name: " + needClassName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue