Skip to content

Commit b3541b7

Browse files
Merge pull request #1180 from credebl/hotfix/send-invitation-email-validation
hotfix: send invitation email validation
2 parents 915f45c + c99bdd4 commit b3541b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ jobs:
7676
- name: Upload to Deno Deploy
7777
uses: denoland/deployctl@v1
7878
with:
79-
project: "credebl-ui" # Project name in Deno Deploy
79+
project: "credebl-studio" # Project name in Deno Deploy
8080
entrypoint: "server/entry.mjs" # 📝 Update the entrypoint
8181
root: "dist"

src/components/organization/invitations/SendInvitationModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const SendInvitationModal = (props: {
158158
validationSchema={yup.object().shape({
159159
email: yup
160160
.string()
161-
.matches(/^[a-zA-Z0-9](?!.*\.\.)[a-zA-Z0-9._%+-]*[a-zA-Z0-9]@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$/, "Email is invalid")
161+
.matches( /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, "Email is invalid")
162162
.email('Email is invalid')
163163
.required('Email is required')
164164
.test('is-self-email', "You can't send invitation to self", (value) => value.trim() !== selfEmail.email.trim())

0 commit comments

Comments
 (0)