forked from beimingwu/beimingwu
fix(frontend): fix email check for login page
This commit is contained in:
parent
3fd6917d2a
commit
5be09dc241
|
|
@ -19,7 +19,7 @@ const router = useRouter();
|
|||
const email = useField<string>({
|
||||
defaultValue: "",
|
||||
validate: (value) => {
|
||||
if (!/^[a-z.-_]+@([a-z.-]+\.[a-z]+|localhost)$/i.test(value)) {
|
||||
if (!/^[a-z.-_]+@([a-z0-9.-]+\.[a-z]+|localhost)$/i.test(value)) {
|
||||
return t("Login.Error.InvalidEmail");
|
||||
}
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue