0
0
Fork 0

Trim the whitespace when parsing the object cards csv

This commit is contained in:
Jan Holub 2021-05-02 09:56:47 +02:00
parent 56b7f461ea
commit 15bd67e620

View file

@ -95,7 +95,11 @@ export class Game {
.then((data) => { .then((data) => {
let objects: object_deck[] = []; let objects: object_deck[] = [];
for (var line of data) { for (var line of data) {
objects.push(Object.values(line)); objects.push(
Object.values(line).map(
object_string => object_string.trim()
)
);
}; };
this._objects = new Deck(objects); this._objects = new Deck(objects);
}) })