Skip to content

Commit c95fa67

Browse files
authored
Merge pull request #102 from iRaziul/patch-1
Fix data transformation with str_getcsv and escape
2 parents a78fc4f + 859cc2e commit c95fa67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/model/src/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static function migrate(?string $locale = null): void
139139

140140
$data->transform(function (string $line) use ($schema): Collection {
141141
return $schema->combine(
142-
array_map(fn ($value) => $value !== '' ? $value : null, str_getcsv($line))
142+
array_map(fn ($value) => $value !== '' ? $value : null, str_getcsv($line, escape: '\\'))
143143
);
144144
});
145145

0 commit comments

Comments
 (0)