mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: more compliant csv
This commit is contained in:
@@ -88,7 +88,7 @@ export class IntegrityRepository {
|
|||||||
for await (const item of items) {
|
for await (const item of items) {
|
||||||
// no expectation of particularly bad filenames
|
// no expectation of particularly bad filenames
|
||||||
// but they could potentially have a newline or quote character
|
// but they could potentially have a newline or quote character
|
||||||
yield `${item.id},${item.type},${item.assetId},${item.fileAssetId},"${item.path.replace(/"/g, '\\"')}"\n`;
|
yield `${item.id},${item.type},${item.assetId},${item.fileAssetId},"${item.path.replace(/"/g, '""')}"\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user