(email)
| 1 | function validateEmail(email) { |
| 2 | const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
| 3 | return re.test(String(email).toLowerCase()); |
| 4 | } |
| 5 | |
| 6 | function sleep (ms) { |
| 7 | return new Promise(resolve => setTimeout(resolve, ms)) |
nothing calls this directly
no outgoing calls
no test coverage detected