Open nus-se-script opened 2 weeks ago
Thank you for raising this. However, users aren't actually able to add duplicate names using the add
command regardless of whitespaces:
I believe what you're referring to is if users were to manually modify data/addressbook.json
. However, we did state in the user guide that certain edits may cause unexpected behaviour and thus users should only edit it if they are confident in doing so:
For now, this is not a priority as we don't encourage users to modify the data directly and users won't be inconvenienced by this in that case. However, we will consider improving this in future iterations.
--
The application does not trim whitespace when importing the json data file. This means the user is able to effectively get multiple users with the same name in the application, which violates the constraint that duplicate names are not provided.
An example json file is provided below:
[original: nus-cs2103-AY2425S1/pe-interim#38] [original labels: severity.Medium type.FunctionalityBug]