-
Notifications
You must be signed in to change notification settings - Fork 543
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
Breaking change in RFC 3339 parser #1239
Comments
Can you say more about the code it broke and how bad the impact is? Generally my operating assumption is that making parsers more relaxed is usually okay, but of course this is one of those areas where semver is tricky to navigate. @pitdicker can you propose some changes to the release notes for this? |
It broke a nom-based parser for log files, that tries to parse a datetime at the beginning of the lines, and that ended up eating an unexpected |
@amousset In your case the problem is the Still parsing with the |
Yes, it restores the behavior we were relying on 👍 |
"The parser for the |
Sounds good! |
Updated the release notes. |
Thanks! |
Just another relevant note here for those who may seek answers: Now it started to allow
|
Right, that is actually correct per the RFC. |
My understanding of this paragraph is:
|
e985f08 changed the behavior of the RFC3339 parsers to switch to a relaxed implementation. The modifies notably the behavior of the parser, e.g. the following code fails before and succeeds starting from 0.4.27 (which actually broke some code using it in my case).
I'm not sure if this impact was expected but it is probably worth a warning in the release notes (it currently only says "Small fixes to the RFC 3339 parsers").
The text was updated successfully, but these errors were encountered: