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:
Ehsan
2025-05-14 15:57:40 +03:30
parent 845db52e31
commit feba3c4a64
10 changed files with 42 additions and 82 deletions
+2 -1
View File
@@ -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: 'شماره موبایل نامعتبر است.' };
}