Skip to content

Commit

Permalink
use same regexp for invites and users in database validations
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Oct 31, 2024
1 parent 7243689 commit bfdcdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/validations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bfdcdd9

Please sign in to comment.