email_inquire icon indicating copy to clipboard operation
email_inquire copied to clipboard

Add custom domains to be checked for typos and hinted

Open sonxurxo opened this issue 5 years ago • 0 comments

Hi

First of all congrats for the lib, I love these UX bits!

It would be great if one could add custom domains to be set as reliable, so that the lib checked for typos against those domains, and hinted with the good one.

Something like adding this in an intializer:

EmailInquire.common_providers << "mydomain.com"

so that doing this:

mailInquire.validate("[email protected]")

would result in

status: :hint | replacement: ' [email protected]

What do you think about this?

sonxurxo avatar Mar 17 '19 18:03 sonxurxo