Fix the email validation problem for a.b@c.club. (#94)
Co-authored-by: yyzhang <yuanyuan.zhang@haochezhu.club>
This commit is contained in:
parent
38754734a2
commit
d8425f3f4c
4 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ import { useRouter } from 'next/navigation'
|
|||
import Toast from '../components/base/toast'
|
||||
import { setup } from '@/service/common'
|
||||
|
||||
const validEmailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/
|
||||
const validEmailReg = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$/
|
||||
const validPassword = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/
|
||||
|
||||
const InstallForm = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue