Skip to content

Commit

Permalink
fix: force , as delimiter (#66)
Browse files Browse the repository at this point in the history
# 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/
#
  • Loading branch information
nicosantangelo authored and nachomazzara committed Jul 17, 2019
1 parent f974e5e commit fb3e880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contracts/LANDRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb3e880

Please sign in to comment.