Open
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
- Validate a value with a
.
prior to a+
- 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
Labels
No labels