Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in DelimitedField.cs #431

Open
FlemmingOstergaard opened this issue Apr 24, 2023 · 0 comments
Open

Bug in DelimitedField.cs #431

FlemmingOstergaard opened this issue Apr 24, 2023 · 0 comments

Comments

@FlemmingOstergaard
Copy link

I have experienced, that if there were more fields in a row, than in the import model AND the first extended field is not quoted it returns and error - "Delimiter '{0}' found ......

I have inserted
private ExtractedInfo BasicExtractString(LineInfo line)
{
if (IsLast && !IsArray) {
var sepPos = line.IndexOf(Separator);

            if (sepPos == -1)
                return new ExtractedInfo(line);

            if(IsOptional)
                return new ExtractedInfo(line, sepPos);

and it fixes the problem.
I have no experience in submitting this fix, but maybe someone can help to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant