Compare commits

..

2 Commits

1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const validateInput = (evt: KeyboardEvent) => {
} }
} }
const validate = () => { 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}$/ const email_regex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/
if (modal_phone.value.length < 3) { if (modal_phone.value.length < 3) {