Updated tests and capped artIndex to be two digits!

This commit is contained in:
leriomaggio
2021-08-26 07:23:09 +01:00
parent 18a537bb5e
commit 26ec34e019
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ public final class CardDb implements ICardDatabase, IDeckGenPool {
}
private static boolean isArtIndex(String s) {
return StringUtils.isNumeric(s);
return StringUtils.isNumeric(s) && s.length() <= 2 ; // only artIndex between 1-99
}
private static boolean isSetCode(String s) {