Skip to content

Commit

Permalink
Merge pull request #88 from BaseAdresseNationale/antoineludeau/fix-tr…
Browse files Browse the repository at this point in the history
…im-cadastre-array-values

Fixed cad_parcelles array by trimming each values
  • Loading branch information
antoineludeau authored May 24, 2024
2 parents fd24aab + 825a7a5 commit aeb46d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bal-converter/helpers/csv-bal-to-json-bal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const csvBalToJsonBal = (csv: string): Bal => {
case "certification_commune":
return trimmedValue === "1";
case "cad_parcelles":
return trimmedValue !== "" ? value.split("|") : [];
return trimmedValue !== "" ? value.split("|").map(value => value.trim()) : [];
case "date_der_maj":
return new Date(trimmedValue);
default:
Expand Down

0 comments on commit aeb46d4

Please sign in to comment.