Enter command: " add n/John Doe p/98765432 e/johnd@example.com o/Barber a/John Street, Block
123, #01-01".
Enter command: add n/John Doe p/98765432 e/johnd@example.com o/Barber a/John Street, Block
123, #01-01". (Notice the difference here is that there is one more extra space between John and Doe in the name)
Expected output:
An error message stating that the contact already exists.
Actual output:
Duplicated contact is added.
Here is the screenshot for the duplicated contacts being added:
Description: When typing, it is normal for users to accidentally enter extra spaces here and there. In this way, this bug will allow duplicated contacts to be added even without the user knowing.
Steps to reproduce:
Enter command: " add n/John Doe p/98765432 e/johnd@example.com o/Barber a/John Street, Block 123, #01-01".
Enter command: add n/John Doe p/98765432 e/johnd@example.com o/Barber a/John Street, Block 123, #01-01". (Notice the difference here is that there is one more extra space between John and Doe in the name)
Expected output: An error message stating that the contact already exists.
Actual output: Duplicated contact is added.
Here is the screenshot for the duplicated contacts being added:
Description: When typing, it is normal for users to accidentally enter extra spaces here and there. In this way, this bug will allow duplicated contacts to be added even without the user knowing.
[original: nus-cs2103-AY2324S1/pe-interim#845] [original labels: type.FeatureFlaw severity.Medium]