Open pennhanlee opened 3 years ago
According to the section below in the UG, there is no requirement for the domain part of the email to have a period or hyphen. Hence the lack of periods in the aforementioned examples in the issue are valid emails.
Team chose [response.Rejected
]
Reason for disagreement: While it is true that VirusTracker User Guide does not state that a period or hypen is required for a valid email, It is in fact a criteria for a valid email address.
The omission of a top-level domain (.com, .org, etc) will result in an email address not being valid and emails sent to the specified account will not be received.
Hence, perhaps a email validation regex could be used to ensure that email addresses are valid in terms of widely adopted convention such that the functionality serves its purpose instead of being based on what is written in the UG.
Accepted AddPerson command:
addPerson idp/12347 n/Richard p/91234567 e/johnd@gmail a/John street,block 123, #01-01 q/false i/false
where .com is not present
Accepted AddPerson command:
addPerson idp/12347 n/Richard p/91234567 e/johnd@gmailcom a/John street,block 123, #01-01 q/false i/false
where there is no . between gmail and com