Improved mtga import

Added ★ and /// to be replaced in CardNameUtil.java (#9855)
Co-authored-by: sprangg <a@b.c>
This commit is contained in:
sprangg 2023-06-01 18:19:14 +03:00 committed by GitHub
parent 63ab4a16c2
commit 4ce9f59e35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ public class CardNameUtil {
public static String normalizeCardName(String name) { public static String normalizeCardName(String name) {
return name return name
.replace("&amp;", "//") .replace("&amp;", "//")
.replace("///", "//")
.replace("Æ", "Ae") .replace("Æ", "Ae")
.replace("ö", "A") .replace("ö", "A")
.replace("ö", "o") .replace("ö", "o")
@ -19,7 +20,8 @@ public class CardNameUtil {
.replace("à", "a") .replace("à", "a")
.replace("é", "e") .replace("é", "e")
.replace("ú", "u") .replace("ú", "u")
.replace("", "+"); .replace("", "+")
.replace("", "*");
} }
} }