Open TZL0 opened 2 years ago
Closed since this issue is a duplicate of #2394
[The team marked this bug as a duplicate of the following bug]
No exception thrown for a email that violates restrictions
The email restrictions that are stated in the user guide is that the domain portion consist of 2 domain labels separated by a .
However when attempting a command that violates this restriction by adding email
nus@nus
which is the domain portion should consist of 2 domain labels, the email is successfully added (refer to second screenshot)This should be a bug as there is no exception caught for this restriction but there is exception thrown for the rest of the restrictions in the diff fields (phone/name)
[original: nus-cs2103-AY2223S1/pe-interim#2011] [original labels: severity.Medium type.FunctionalityBug]
[This is the team's response to the above 'original' bug]
Flaw is unlikely to affect normal operations of the product as users will only want to record valid email addresses.
This group of bugs can be fixed by fixing the regex checked for emails
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]
The application allows an invalid email address
123@123
.