Trim the whitespace when parsing the object cards csv
This commit is contained in:
parent
56b7f461ea
commit
15bd67e620
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue