nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

When using the add command, multiple spaces are allowed between words in a name #2034

Open nus-se-script opened 5 months ago

nus-se-script commented 5 months ago

How to reproduce

  1. Take the command provided in the user guide: add id/ 12360 n/ John Chan p/ John f/ Curry chicken c/ Stable c/ Has 2 sons visit him regularly h/ Singing karaoke t/Diabetes

  2. Add an extra whitespace in the name such that instead of John Chan, we have "John Chan".

  3. Press enter

Expected

For the final name to still reflect "John Chan" without the additional white space.

Actual

The final name reflected is "John Chan", which matches the input, but this may prove to be unintuitive for the user.

image.png


[original: nus-cs2103-AY2324S2/pe-interim#1687] [original labels: type.FeatureFlaw severity.VeryLow]

choowengyan commented 5 months ago

Team's Response

Hi Thanks for pointing out!

Duplicate status (if any):

--