1
0

feat: improve input validation for register form

This commit is contained in:
kolaente
2021-11-28 16:33:03 +01:00
committed by Dominik Pschenitschni
parent f7eb160509
commit 05e054f501
4 changed files with 58 additions and 7 deletions

6
src/helpers/isEmail.ts Normal file
View File

@ -0,0 +1,6 @@
export function isEmail(email: string): Boolean {
const format = /^.+@.+$/
const match = email.match(format)
return match === null ? false : match.length > 0
}