Skip to content

Email Validation BrokenΒ #57

Open
Open
@blangel-nydig

Description

Expected Behavior

brian.langel+test@test.com should be a valid email. However, since the . is prior to the + the regex rejects this.

Actual Behavior

brian.langel+test@test.com is rejected because the . is prior to the +

Steps to Reproduce the Problem

  1. Validate a value with a . prior to a +
  2. The value is rejected but shouldn't be

Example Code or Link to a Project

validate("brian.langel+test@test.com")
            .isEmail()

Environment

  • Valiktor version: valiktor-core 0.12.0
  • JDK/JRE version: 1.8
  • Platform/OS: Mac OS

Links

Consider using a regular expression more conformant to RFC 5322 as documented here with a proposed RegEx here

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