From a72c8b005f0a045b200262bef1d1f58e6f3e729a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Sant=C3=A1ngelo?= Date: Tue, 16 Jul 2019 17:57:13 +0200 Subject: [PATCH] fix: force , as delimiter # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch fix/csv-parsing # Changes to be committed: # modified: src/contracts/LANDRegistry.ts # # Untracked files: # .vscode/ # --- src/contracts/LANDRegistry.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/contracts/LANDRegistry.ts b/src/contracts/LANDRegistry.ts index 4726d28..0ba26d0 100644 --- a/src/contracts/LANDRegistry.ts +++ b/src/contracts/LANDRegistry.ts @@ -24,7 +24,9 @@ export class LANDRegistry extends Contract { const version = data.charAt(0) switch (version) { case '0': { - const [version, name, description, ipns] = CSV.parse(data)[0] + const [version, name, description, ipns] = CSV.parse(data, { + cellDelimiter: ',' + })[0] return { version,