jewiteo / pe

0 stars 0 forks source link

Unable to add owner despite valid IC #2

Closed jewiteo closed 1 week ago

jewiteo commented 1 week ago

Issue

The application is showing an error and not letting an owner be created; the error being shown is "Identification Card (IC) Number should only contain alphanumerics and adhere to the constraints based on the format of the 9-character Singapore IC number. Letters should be upper case."

The command used was from the example command within the application except that one of the zeros of the IC number was changed to 1.

image.png

How to replicate

For the command as shown in the image: Enter the command with the following arguments owner i/S0000011I n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25

Other NRIC numbers that seem to be invalid include: S1234567A, S1234567E

Suggestions

I might be mistaken on the constraints imposed by the application but maybe a better error message could be given