I realised that no two persons can have the same name or phone, however they could share the same email which is not consistent with the fact that there is a check only for duplicate phones although email is another form of unique contact.
To Reproduce
Use an add command with a unique name and phone but an email that is available in the list.
Expected behavior
Due to the overzealous check of duplicate phones, there should also be a check for the second form of communication which is emails. The issue this might cause is the user might contact the wrong email when erroneous email is associated with a different person.
Duplicate Person regex check
I realised that no two persons can have the same name or phone, however they could share the same email which is not consistent with the fact that there is a check only for duplicate phones although email is another form of unique contact.
To Reproduce
Use an add command with a unique name and phone but an email that is available in the list.
Expected behavior
Due to the overzealous check of duplicate phones, there should also be a check for the second form of communication which is emails. The issue this might cause is the user might contact the wrong email when erroneous email is associated with a different person.
Severity
Medium
Reference – cs2103 bug severity levels
Screenshots
Desktop
OS: Microsoft Windows Resolution: 2560 X 1440 Version: Windows 11 Home 24H2