fix: email reg (#135)

This commit is contained in:
Joel
2023-05-22 10:39:51 +08:00
committed by GitHub
parent 4db01403ae
commit 17a8118154
4 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ import Button from '@/app/components/base/button'
import { login, oauth } from '@/service/common'
import { apiPrefix } from '@/config'
const validEmailReg = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,4}$/
const validEmailReg = /^[\w\.-]+@([\w-]+\.)+[\w-]{2,}$/
type IState = {
formValid: boolean