Phone Number validation in Pre-chat form

The validation of phone number field in pre-chat form does not work for 10 digit number. The form can be successfully submitted after putting less than or greater than 10 digit phone number. So I need my Pre-chat form’s phone number field supports only 10 digit numbers without any special characters in it.