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

improve validation using all_consuming in parser #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daku10
Copy link

@daku10 daku10 commented Jan 6, 2024

Thank you for the great product!

I've found some invalid DKIM tag-list get parsed without any errors.

e.g. v=DKIM1; k=ed25519; p=11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo=; invalid!

To fix this, I tried using the all_consuming combinator.
I'm not familiar with rust and nom, so if there's a better way to fix this or if I've missed something, please let me know.

Hope this helps, and I’d love to hear any thoughts or feedback on this fix.

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.

1 participant