Skip to content
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

fix regex for not fitting header and over fitting image tag removement #49

Merged
merged 3 commits into from
Jun 12, 2020

Conversation

WalumNitdoof
Copy link

(?i)<html.*/head> remove of head tags doesn't work because of multi lines.

<img.+src=[^h][^t][^>]*?> matches simply everything what is in a HTML mail because of [^>]

@cseeger-epages
Copy link
Contributor

@WalumNitdoof sieht gut aus kannst du mir dafür noch einen test schreiben in die mailparse_test.go

@cseeger-epages cseeger-epages merged commit 1aadfca into Virtomize:master Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants