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

Can this gem check the validity of an email address? #231

Open
la-ruby opened this issue Jun 13, 2021 · 0 comments
Open

Can this gem check the validity of an email address? #231

la-ruby opened this issue Jun 13, 2021 · 0 comments

Comments

@la-ruby
Copy link

la-ruby commented Jun 13, 2021

We have this error that appears in our logs:

{\"eventErrorEntityType\":\"INVALID_EMAIL_ADDRESS\",\"status\":\"error\",\"message\":\"invalid email: [email protected]\",\"correlationId\":\"e24c657a-36a6-4885-84dc4ab8111e3123\",\"invalidEmail\":\"[email protected]\",\"eventErrorEntityType\":\"INVALID_EMAIL_ADDRESS\"}"

It would be nice if the gem can provide a valid? method that uses the same regex Hubspot uses to check the validity of an email address.

Standard regexes like this one: VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/I
doesn't the kind of issues Hubspot catches.

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

No branches or pull requests

1 participant