Uploaded image for project: 'Blog'
  1. Blog
  2. BLOG-142

email validation regexp incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.0.0
    • None
    • 4.1RC1

      The email validation regex in use is

      /^([a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,})?$/
      

      Checking an email using regexp is nearly impossible.

      This one for example block emails like my.name+tag@mailserver.com

      I suggest using

      /@/
      

      (and maybe trimming the field)

            Unassigned Unassigned
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: