• Resolved remecz

    (@remecz)


    The plugin’s JS email validation function (validateEmail) currently blocks email addresses like @xyz.cloud as it only allows the last part of the email address to have 2-4 characters. Can you please update this in the plugins’s JS assets? Thank you!

    function validateEmail(e){return/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(e)}

    to

    function validateEmail(e){return/^([\w-\.]+@([\w-]+\.)+[\w-]{2,63})?$/.test(e)}

    TLD names are valid up to 63 characters. See at: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_domain_name

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update email validation to allow TLD with 5+ chars (ie. @xyz.cloud)’ is closed to new replies.