mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
Ignore malformed csv lines
This commit is contained in:
@@ -46,7 +46,9 @@ namespace QuickLook.Plugin.CsvViewer
|
||||
|
||||
using (var sr = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
|
||||
{
|
||||
using (var parser = new CsvParser(sr))
|
||||
var conf = new CsvHelper.Configuration.Configuration() {MissingFieldFound = null, BadDataFound = null};
|
||||
|
||||
using (var parser = new CsvParser(sr, conf))
|
||||
{
|
||||
var i = 0;
|
||||
while (true)
|
||||
|
Reference in New Issue
Block a user