Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-93

GenericValidaor.isEmail bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • 1.1.0 (alpha)
    • None
    • None
    • Operating System: other
      Platform: Other

    • 15898

    Description

      isEmail returns true when the domain part ends with a dot

      example

      ticktock@speakeasy.

      returns true.

      Quick n Dirty fix
      GenericValidator
      public static boolean isEmail(String value) {
      boolean bValid = true;

      if(value.endsWith("."))

      { return false; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            ticktock@speakeasy.net Scott Clasen
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: