Skip to content

Commit 0c02a92

Browse files
authored
make pt a string for sure (#1615)
1 parent ddd3a39 commit 0c02a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/import/xml/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function parse(content) {
8181
pt = "",
8282
side = "a",
8383
type = "" } = root.version === "3" ? c : c.prop;
84-
const [power, toughness] = pt.split("/");
84+
const [power, toughness] = String(pt).split("/");
8585
const fixedColors = getTrueColors(root.version, color, colors);
8686
const fixedType = getTrueType(type);
8787
const fixedManaCost = addManaCostBrackets(String(manacost));

0 commit comments

Comments
 (0)