diff --git a/src/Biomatch.CLI/Csv/PersonRecordTemplate.cs b/src/Biomatch.CLI/Csv/PersonRecordTemplate.cs index 6ea2ca2..734e992 100644 --- a/src/Biomatch.CLI/Csv/PersonRecordTemplate.cs +++ b/src/Biomatch.CLI/Csv/PersonRecordTemplate.cs @@ -9,7 +9,7 @@ public static class PersonRecordTemplate { public static IEnumerable ParseCsv(string csvFilePath) { - using var reader = Sep.New(',').Reader(o => o with { }).FromFile(csvFilePath); + using var reader = Sep.New(',').Reader(o => o with { Unescape = true }).FromFile(csvFilePath); foreach (var readRow in reader) { yield return new PersonRecord( diff --git a/src/Biomatch.CLI/Csv/PotentialMatchTemplate.cs b/src/Biomatch.CLI/Csv/PotentialMatchTemplate.cs index 64b42ca..9ae1063 100644 --- a/src/Biomatch.CLI/Csv/PotentialMatchTemplate.cs +++ b/src/Biomatch.CLI/Csv/PotentialMatchTemplate.cs @@ -6,10 +6,7 @@ namespace Biomatch.CLI.Csv; public static class PotentialMatchTemplate { - public static async Task WriteToCsv( - IEnumerable potentialMatches, - string csvFilePath - ) + public static Task WriteToCsv(IEnumerable potentialMatches, string csvFilePath) { var csvContent = new StringBuilder(); const string header = @@ -67,6 +64,6 @@ string csvFilePath csvContent.AppendLine(line); } - await File.WriteAllTextAsync(csvFilePath, csvContent.ToString()); + return File.WriteAllTextAsync(csvFilePath, csvContent.ToString()); } }