0
0
Fork 0

Merge pull request #107 from j-holub/TrimWhitespacesOnObjectParsing

Trim the whitespace when parsing the object cards csv
This commit is contained in:
Oliver 2021-05-02 18:34:40 -06:00 committed by GitHub
commit 0f7f23e162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,11 @@ export class Game {
.then((data) => {
let objects: object_deck[] = [];
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);
})