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

Disable normalizeEmail special normalizations for Gmail #459

Closed
slavafomin opened this issue Dec 1, 2015 · 2 comments · Fixed by #460
Closed

Disable normalizeEmail special normalizations for Gmail #459

slavafomin opened this issue Dec 1, 2015 · 2 comments · Fixed by #460

Comments

@slavafomin
Copy link

Hello!

I'm using normalizeEmail normalizer in order to lowercase all E-Mail addresses, however it has some special normalization rules for GMail E-Mails. This breaks compatibility between our services, because we are using E-Mail addresses to match different entities.

Is there a way to disable this special normalizations (i.e. dots removal and such) and allow only lowercasing?

Thank you!

@chriso
Copy link
Collaborator

chriso commented Dec 1, 2015

Once I publish a new version you'd use validator.normalizeEmail(email, {remove_dots: false, remove_extension: false}).

@slavafomin
Copy link
Author

Wow, that was fast ))
Thank you!

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 a pull request may close this issue.

2 participants