a__a@example.com is flagged as an invalid email even though it does not contradict the constraints.
The constraints are as follows:
Emails should be of the format local-part@domain and adhere to the following constraints:
1. The local-part should only contain alphanumeric characters and these special characters, excluding the parentheses, (+_.-). The local-part may not start or end with any special characters.
2. This is followed by a '@' and then a domain name. The domain name is made up of domain labels separated by periods.
The domain name must:
- end with a domain label at least 2 characters long
- have each domain label start and end with alphanumeric characters
- have each domain label consist of alphanumeric characters, separated only by hyphens, if any.
Description
a__a@example.com
is flagged as an invalid email even though it does not contradict the constraints.The constraints are as follows:
Steps to Reproduce
add-client n/John Doe p/98765432 e/a--a@example.com a/311, Clementi Ave 2, #02-25 vrn/SJH9514P vin/KMHGH4JH3EU073801 make/Toyota model/Corolla i/Engine i/Gearbox
[original: nus-cs2103-AY2425S1/pe-interim#782] [original labels: severity.Low type.FunctionalityBug]