change list sort doctors page & change function search list specialties & remove pagination from page specialties & fix zoom page & change design all fields & change regex validation phone number for nobat724 and clinic-pro
This commit is contained in:
+2
-1
@@ -119,11 +119,12 @@ export function validatePhoneNumber(input) {
|
||||
return { valid: false, text: 'شماره موبایل نمیتواند خالی باشد.' };
|
||||
}
|
||||
|
||||
|
||||
if (digits.length !== 9) {
|
||||
return { valid: false, text: 'شماره موبایل باید دقیقا 11 رقم باشد.' };
|
||||
}
|
||||
|
||||
const isValid = /^9\d{8}$/.test(digits);
|
||||
const isValid = /^[1-9]\d{8}$/.test(digits);
|
||||
if (!isValid) {
|
||||
return { valid: false, text: 'شماره موبایل نامعتبر است.' };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user