Open yorklim opened 5 months ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Unable to add email with special characters that are allowed
As seen in the image, when attempting to add
/add_student name/Dohn Joe email/john+_.-doe@gmail.com id/A0123456A
, we get an error message.The input seems to be perfectly fine according the error message:
Emails should be of the format local-part@domain and adhere to the following constraints:
- 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.
- 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.
Except maybe the last part which says "have each domain label consist of alphanumeric characters, separated only by hyphens, if any."
But that is a different bug altogether and is contradictory to what's mentioned in point 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.
[original: nus-cs2103-AY2324S2/pe-interim#5367] [original labels: severity.Medium type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
Alphanumeric characters and certain special characters only allowed, EXCLUDING the mentioned special characters
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
I am unable to add the student with the email "Za-----ck@example.com" even though it follows the email format provided by the error message.
Step to Reproduce: