We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d029df commit d5bc659Copy full SHA for d5bc659
1 file changed
src/Migration/Sources/CSV.php
@@ -216,9 +216,8 @@ private function exportDocuments(int $batchSize): void
216
if ($parsedValue === '') {
217
$parsedData[$key] = [];
218
} else {
219
- $arrayValues = str_contains($parsedValue, ',')
220
- ? array_map('trim', explode(',', $parsedValue))
221
- : [$parsedValue];
+ $arrayValues = str_getcsv($parsedValue);
+ $arrayValues = array_map('trim', $arrayValues);
222
223
$parsedData[$key] = array_map(function ($item) use ($type) {
224
return match ($type) {
0 commit comments