AY2425S1-CS2103-F10-2 / tp

MIT License
0 stars 5 forks source link

Restrict phone numbers to length of 8 #65

Closed Andrew22Teoh closed 2 weeks ago

Andrew22Teoh commented 3 weeks ago

Current phone number restriction is any string consisting only of numbers of length 3 or greater.

This requires modification as defined in the MVP, such that phone numbers are always of length 8.

Note: This will also modify the error message output specified in the MVP requirement from "Invalid phone number entered" to "Phone numbers should only contain numbers, and it should be exactly 8 digits long." This change helps to make the error message more informative for users, in the event that they key in an invalid phone number.