[MGNLFORM-248] Improve email validator Created: 29/Oct/14  Updated: 06/May/15  Resolved: 21/Jan/15

Status: Closed
Project: Magnolia Form Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2.10

Type: Improvement Priority: Neutral
Reporter: Zdenek Skodik Assignee: Evzen Fochr
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
duplicate
is duplicated by MGNLFORM-251 Make email validation more robust Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

The current validator just checks for an @ sign, while slightly improved regexp like:

(^$|^[^@\s]+@[^@\s]+\.[^@\s]+$)

can check there is only one @ at the provided input and that there is a dot present afterwards.



 Comments   
Comment by Evzen Fochr [ 18/Dec/14 ]

Regexp was upgraded to

(^([a-zA-Z0-9_\.\-+])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$)
Comment by Espen Jervidalo [ 21/Jan/15 ]

ce-bundle still points to the old version:

<dependency>
  <groupId>info.magnolia</groupId>
  <artifactId>magnolia-module-form</artifactId>
  <version>2.2.9</version>
</dependency>
Generated at Mon Feb 12 05:38:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.