Spaces:
Running
Running
Update login.html
Browse files- login.html +1 -3
login.html
CHANGED
@@ -362,17 +362,15 @@
|
|
362 |
return false;
|
363 |
}
|
364 |
|
365 |
-
if (phone.length !== 10 || !phone.match(/^[
|
366 |
showMessage('registerMessage', 'الرجاء إدخال رقم هاتف صحيح', true);
|
367 |
return false;
|
368 |
}
|
369 |
-
|
370 |
// هنا يمكنك إضافة كود الاتصال بالخادم
|
371 |
showMessage('registerMessage', 'جاري إنشاء الحساب...', false);
|
372 |
|
373 |
return false;
|
374 |
}
|
375 |
-
|
376 |
function isValidEmail(email) {
|
377 |
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
|
378 |
}
|
|
|
362 |
return false;
|
363 |
}
|
364 |
|
365 |
+
if (phone.length !== 10 || !phone.match(/^[\u0660-\u0669\u06F0-\u06F9\u0030-\u0039]{10}$/)) {
|
366 |
showMessage('registerMessage', 'الرجاء إدخال رقم هاتف صحيح', true);
|
367 |
return false;
|
368 |
}
|
|
|
369 |
// هنا يمكنك إضافة كود الاتصال بالخادم
|
370 |
showMessage('registerMessage', 'جاري إنشاء الحساب...', false);
|
371 |
|
372 |
return false;
|
373 |
}
|
|
|
374 |
function isValidEmail(email) {
|
375 |
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
|
376 |
}
|