Simply try adding a contact with phone number as 9876 5432 e.g add n/Irfan p/9876 5432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
The same applies for numbers such as (hp) 9124 1241 or 1234 5678 (HP) 1111-3333 (Office)
Expected output
This type of number formatting should be allowed as most people are used to typing out their numbers this way. This command should by right be allowed for whitespaces between numbers.
Actual output
Phone numbers should only contain numbers, and it should be at least 3 digits long
Suggestions
Let's try to consider this input validation for the future releases as blocking that input might not add any value but allowing it does.
Steps to reproduce
Simply try adding a contact with phone number as 9876 5432 e.g
add n/Irfan p/9876 5432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
The same applies for numbers such as
(hp) 9124 1241
or1234 5678 (HP) 1111-3333 (Office)
Expected output
Actual output
Phone numbers should only contain numbers, and it should be at least 3 digits long
Suggestions