Open nus-pe-bot opened 2 years ago
As mentioned in this website, it is possible for names of people to contain numbers.
An example of a person with the number 8 in her name is here.
Furthermore, we have chosen to avoid overzealous input validation in this case as clinics may wish to add further labeling to the patient's names.
It would be highly improbable for a user to accidentally replace the patient's whole name with numbers and hence we do not believe that this is an issue.
--
Describe the bug :
When adding a new person, names that contain numbers or are just numbers are allowed. This is a flaw as names do not contain numbers
To Reproduce :
Add a new person with numbers for names example:
add n/1456 p/98765432 e/johnd@example.com nok/Jane Doe, Wife, 82858285 pt/inpatient hw/south fn/3 wn/D690 m/panadol m/ibuprofen
Expected behavior : possibly an error message to restrict the adding of this person
Actual behaviour: person with number for name will be added Screenshots/Videos :
[original: nus-cs2103-AY2223S1/pe-interim#1840] [original labels: type.FeatureFlaw severity.Low]