(email: string)
| 139 | } |
| 140 | |
| 141 | export function isValidEmail(email: string) { |
| 142 | // Rather than using esoteric regex complying RFC 822/2822, we just use a naive but readable version |
| 143 | // which should work most of the time. |
| 144 | const re = /\S+@\S+\.\S+/; |
| 145 | return re.test(email); |
| 146 | } |
| 147 | |
| 148 | export function randomString( |
| 149 | n: number, |
no outgoing calls
no test coverage detected