mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
fix mtga import for +2 Mace
This commit is contained in:
parent
6e61b02440
commit
c53db0810d
1 changed files with 6 additions and 4 deletions
|
|
@ -4,13 +4,10 @@ import java.util.regex.Pattern;
|
|||
|
||||
public class CardNameUtil {
|
||||
|
||||
public static final Pattern CARD_NAME_PATTERN = Pattern.compile("[ !\"&',\\-./0-9:A-Za-z]+");
|
||||
public static final Pattern CARD_NAME_PATTERN = Pattern.compile("[+ !\"&',\\-./0-9:A-Za-z]+");
|
||||
|
||||
/**
|
||||
* Convert card names with unicode symbols to ascii, uses to deck import from a third party services
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static String normalizeCardName(String name) {
|
||||
// new symbols checks in verify test, no need to manually search it
|
||||
|
|
@ -36,4 +33,9 @@ public class CardNameUtil {
|
|||
.replace("ñ", "n")
|
||||
.replace("®", "");
|
||||
}
|
||||
|
||||
private CardNameUtil() {
|
||||
// utility class
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue