Accept `+` char in email addresses
This commit is contained in:
parent
799144defd
commit
f0f31730da
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue