update deps

This commit is contained in:
Paddy Xu
2021-11-15 23:52:02 +01:00
parent e640a8b98a
commit f726841d99
17 changed files with 57 additions and 41 deletions

View File

@@ -48,14 +48,14 @@ namespace QuickLook.Plugin.CsvViewer
using (var sr = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
{
var conf = new Configuration {MissingFieldFound = null, BadDataFound = null};
var conf = new CsvConfiguration(CultureInfo.CurrentUICulture) {MissingFieldFound = null, BadDataFound = null, DetectDelimiter = true};
using (var parser = new CsvParser(sr, conf))
{
var i = 0;
while (true)
while (parser.Read())
{
var row = parser.Read();
var row = parser.Record;
if (row == null)
break;
row = Concat(new[] {$"{i++ + 1}".PadLeft(6)}, row);