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

Parsing difference between VB parser and this parser #5

Closed
wrightsonm opened this issue Apr 9, 2019 · 1 comment
Closed

Parsing difference between VB parser and this parser #5

wrightsonm opened this issue Apr 9, 2019 · 1 comment

Comments

@wrightsonm
Copy link

string s = "a,b,\r\n";

When using the VB parser, the ReadFields() method results in 2 fields
When using this parser, the ReadFields() method results in 3 fields

string s = "a,b\r\n";
functions as expected

string s = "a,b,";
When using the VB parser, the ReadFields() method results in 3 fields
When using this parser, the ReadFields() method results in 3 fields
this results in the correct behaviour that is specially coded in ReadFields() line 111, "if the last char is the delimiter, then we need to add an extra empty field"

@wrightsonm
Copy link
Author

Apologies, checking back, I think I made an error when trying to simplify my test case. i think this is working as expected.

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