nus-cs2103-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Valid email is flagged as invalid #553

Open nus-se-script opened 1 week ago

nus-se-script commented 1 week ago

Description

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.

Steps to Reproduce

  1. 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

image.png


[original: nus-cs2103-AY2425S1/pe-interim#782] [original labels: severity.Low type.FunctionalityBug]

Meowloid commented 1 week ago

Team's Response

No details provided by team.

Duplicate status (if any):

--