ノートの改行コードを正規化

This commit is contained in:
shibafu 2020-02-16 15:29:06 +09:00
parent 3def26ddb9
commit 7259ee3647

View File

@ -68,7 +68,7 @@ class CheckinCsvImporter
}
$ejaculation->ejaculated_date = Carbon::createFromFormat('!Y/m/d H:i+', $record['日時']);
$ejaculation->note = $record['ノート'] ?? '';
$ejaculation->note = str_replace(["\r\n", "\r"], "\n", $record['ノート'] ?? '');
$ejaculation->link = $record['オカズリンク'] ?? '';
$tagIds = [];