Accept `+` char in email addresses

This commit is contained in:
Daniel Egger 2023-12-21 09:19:14 +01:00
parent 799144defd
commit f0f31730da
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const hasMentors = computed(() => {
}); });
const validEmail = computed(() => { const validEmail = computed(() => {
const emailRegex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
return emailRegex.test(inviteeEmail.value); return emailRegex.test(inviteeEmail.value);
}); });