Skip to content

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

Description

@la-ruby

We have this error that appears in our logs:

{\"eventErrorEntityType\":\"INVALID_EMAIL_ADDRESS\",\"status\":\"error\",\"message\":\"invalid email: redacted@ymail.con\",\"correlationId\":\"e24c657a-36a6-4885-84dc4ab8111e3123\",\"invalidEmail\":\"redacted@ymail.con\",\"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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions