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
Fixes for RFC 2231 #726
Fixes for RFC 2231 #726
Conversation
Can you rebase this please? Thank you! |
On it |
I love that we worked on this @madisonruby for #OSL
I love working at the #OSL
* Broken quotes needs to be checked before RFC2231 otherwise the filenames are not correctly found * Parsing "files" out of the header was converted to an empty string instead instead of nil when the body was empty. I love working at the #OSL
Done |
✨ 🍰 ✨ |
Thanks. Would you mind running the tests? This PR is generating warnings with the new regexps:
|
That's interesting, I don't remember seeing those before. I'll take a look at them tonight. Sorry about that |
No problem! It might just be against trunk Ruby (Ruby 2.3) |
On Sat, Jun 13, 2015 at 03:36:31PM -0700, Aaron Patterson wrote:
Nah, it shows up in Travis-CI for 2.2 too. I don't think I had 2.2 installed |
So I took a look at this tonight finally. The interesting thing is that on L31 of EXTENDED_INITIAL_VALUE = /(?:[a-zA-Z0-9\-]+)?'(?:[a-zA-Z0-9\-]+)?'(?:#{EXTENDED_OTHER_VALUE}+)/ to EXTENDED_INITIAL_VALUE = /(?:#{EXTENDED_OTHER_VALUE}+)/ Those warnings disappear. I'm toying around in rubular to see if I can find an equivalent regular expression to make Ruby 2.2 happy. |
So, the warnings go away (but the tests fail) if we do: EXTENDED_INITIAL_VALUE = /([a-zA-Z0-9\-]+)?'([a-zA-Z0-9\-]+)?'(#{EXTENDED_OTHER_VALUE}+)/ But in reality, we don't need to capture those matches individually. |
@tenderlove here's the fix: #892 |
No description provided.