mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Change the phone number validation regex.
This commit is contained in:
parent
2bf9a6193e
commit
86d3ce8dc9
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ window.App.Utils.Validation = (function () {
|
||||||
* @return {Boolean}
|
* @return {Boolean}
|
||||||
*/
|
*/
|
||||||
function phone(value) {
|
function phone(value) {
|
||||||
const re = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/im;
|
const re = /^[+]?([0-9]*[\.\s\-\(\)]|[0-9]+){3,24}$/;
|
||||||
|
|
||||||
return re.test(value);
|
return re.test(value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue