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.
Section of add command in user guide
output of add n/John Doe p/98765432 e/johnd@example.c a/John street, block 123, #01-01 b/40 s/Male (failed)
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.
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.
Section of add command in user guide
output of
add n/John Doe p/98765432 e/johnd@example.c a/John street, block 123, #01-01 b/40 s/Male
(failed)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.