-
Notifications
You must be signed in to change notification settings - Fork 255
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
Fails to parse record with unescaped parenthesis #79
Comments
Thanks for reporting this. I added a unit test to parse the exact text you provided, and it seems to have no problem with it. I tried parsing it as the in-memory string, and as a file written to disk (which is similar to what your code was doing). Both tests pass without modification to the parser, so I'm not sure what the issue is here. |
Are the URLs you're parsing remote (coming in over a network connection) or local file URLs? Do you have an example of either that I could try? |
Hi Dave, |
Thanks @marvin-yorke. I incorporated the |
Hm, ok, I've cloned the repo and run the tests and it works on my machine too. I should have mentioned that original case was observed on iOS, not OS X. Could this make any difference? Also I've installed the library from Cocoapods, not from github, although there's no major difference to the latest code.. Anyway, I'll try again with my iOS app and let you know about the results |
I've checked the issue again and here's the line that breaks the parsing |
Yes, that is a problem with the data. When the parser encounters a field that starts with |
Then could you please help me on how to correct my data? |
The solutions seems pretty clear: don't start an field with quoted text; or if a field starts with quoted text wrap the whole field in quotes. |
Is there a property that can turn of such behavior. Or some work around without me having to edit the file I am parsing. Edit: added one seems to work fine now :) |
given the record
library fails to parse the 3rd field with the following error:
Is there any way to parse this data without altering it (e.g adding quotes)?
The text was updated successfully, but these errors were encountered: