AY2425S1-CS2103T-T10-1 / tp

MIT License
0 stars 5 forks source link

Add Command: Difference between user guide and app #116

Open Bonzzz3 opened 21 hours ago

Bonzzz3 commented 21 hours ago

Description

Add Command: Difference between user guide and app

Details

There might be a difference between user guide format for add command and the code behaviour.

image Section of add command in user guide

image output of add n/John Doe p/98765432 e/johnd@example.c a/John street, block 123, #01-01 b/40 s/Male (failed)

image output of add n/John Doe p/98765432 e/johnd@example.co a/John street, block 123, #01-01 b/40 s/Male (succeed)

In the code, it seems that .c is treated as the domain name and not the whole @example.c which is not the same as stated in user guide and the error message provided.

Example given in user guide is e/johnd@example.com which has a . but in user guide it is stated that "The domain label should consist of alphanumeric characters separated only be hyphens, if any." , which contradicts each other.