phone_regexp
This commit is contained in:
parent
a0a80bdb50
commit
119d90fa14
|
@ -21,7 +21,7 @@ const validateInput = (evt: KeyboardEvent) => {
|
|||
}
|
||||
}
|
||||
const validate = () => {
|
||||
const phone_regexp = /\(?\+[0-9]{1,3}\)? ?-?[0-9]{1,3} ?-?[0-9]{3,5} ?-?[0-9]{4}( ?-?[0-9]{3})? ?(\w{1,10}\s?\d{1,6})?/
|
||||
const phone_regexp = /^\+?[\d\s-()]{0,14}\d{11}$/
|
||||
const email_regex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/
|
||||
|
||||
if (modal_phone.value.length < 3) {
|
||||
|
|
Loading…
Reference in New Issue