We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
We ran into a little problem with emails that have content types that look like:
Content-type: text/html; charset=utf-8
The regular expression in plancake email parser looks like this:
if (preg_match('/^Content-Type: ?text/html/', $line, $matches)) {
This regular expression won't match because of the capitalization of the "t" in "-type". In other words:
Content-type: << ours Content-Type: << expected
How about making the preg_match case insensitive?
Cheers, and thanks for the wonderful tool!
The text was updated successfully, but these errors were encountered:
Hi Bret.
I am glad you are finding the Plancake Email Parser useful.
Thanks a lot for your bug reporting. We hopefully will get sorted out within the next two weeks.
Thanks, Dan
On Tue, May 8, 2012 at 7:14 PM, clone45 < reply@reply.github.com
wrote: Hello, We ran into a little problem with emails that have content types that look like: Content-type: text/html; charset=utf-8 The regular expression in plancake email parser looks like this: if (preg_match('/^Content-Type: ?text/html/', $line, $matches)) { This regular expression won't match because of the capitalization of the "t" in "-type". In other words: Content-type: << ours Content-Type: << expected How about making the preg_match case insensitive? Cheers, and thanks for the wonderful tool! Bret Reply to this email directly or view it on GitHub: #5
wrote:
Reply to this email directly or view it on GitHub: #5
Sorry, something went wrong.
No branches or pull requests
Hello,
We ran into a little problem with emails that have content types that look like:
Content-type: text/html; charset=utf-8
The regular expression in plancake email parser looks like this:
if (preg_match('/^Content-Type: ?text/html/', $line, $matches)) {
This regular expression won't match because of the capitalization of the "t" in "-type". In other words:
Content-type: << ours
Content-Type: << expected
How about making the preg_match case insensitive?
Cheers, and thanks for the wonderful tool!
The text was updated successfully, but these errors were encountered: