Skip to content

Commit

Permalink
fix: 修复漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
SilianZ authored Feb 10, 2025
1 parent a3efc1b commit d8c2388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ApplicationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const resolver = ref(
email: z
.string()
.min(1, { message: t("message.fill_out") })
.regex(/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/, {
.regex(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, {
message: t("message.invalid_email"),
}),
date: z.date({ message: t("message.fill_out") }),
Expand Down

0 comments on commit d8c2388

Please sign in to comment.