From bfdcdd9971ac84463720bb22a2363d435f50293c Mon Sep 17 00:00:00 2001 From: Lucas Menendez Date: Thu, 31 Oct 2024 15:26:34 +0100 Subject: [PATCH] use same regexp for invites and users in database validations --- db/validations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/validations.go b/db/validations.go index a64f1a4..24136cc 100644 --- a/db/validations.go +++ b/db/validations.go @@ -55,7 +55,7 @@ var organizationInvitesCollectionValidator = bson.M{ "newUserEmail": bson.M{ "bsonType": "string", "description": "must be an email and is required", - "pattern": `^[\w.\-]+@([\w\-]+\.)+[\w]{2,}$`, + "pattern": `^[\w.\+\.\-]+@([\w\-]+\.)+[\w]{2,}$`, }, "expiration": bson.M{ "bsonType": "date",