-
Notifications
You must be signed in to change notification settings - Fork 546
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
Simplify RFC 2822 comment parser #737
Conversation
Looks good - looks like this disallows training whitespace which is consistent with the behavior pre acd4ecf. Only thought I had was changing the test strings to raw strings as the multiple levels of escaping is a bit tricky - I added a PR (#738) to this branch to do that, however please feel free to ignore if you think it's not necessary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reworked parser is quite elegant. I am ok with the removed trailing whitespace support, as it matches the RFC. I disagree with reducing whitespace down to the space character, which is not RFC conform. trim_left()
seems to match the behaviour of the RFC closer.
Created PR with fixes for my comments: #739 |
Thanks, great collaboration here! |
Tweak the implementation from #733 to simplify the parser.
cc @Finomnis