Compare commits
2 Commits
b650c395b3
...
f5e1818047
Author | SHA1 | Date |
---|---|---|
|
f5e1818047 | |
|
119d90fa14 |
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue