Skip to content

Commit

Permalink
Merge pull request #595 from OneCommunityGlobal/xiaow_hotfix_of_canno…
Browse files Browse the repository at this point in the history
…t_create_new_user

XiaoW_Hot fix of cannot create new user
  • Loading branch information
one-community authored Nov 5, 2023
2 parents 52be2b9 + 4e318bc commit 5aabaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/userProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const userProfileSchema = new Schema({
default: '',
validate: {
validator(v) {
const teamCoderegex = /^([a-zA-Z]-[a-zA-Z]{3}|[a-zA-Z]{5})$/;
const teamCoderegex = /^([a-zA-Z]-[a-zA-Z]{3}|[a-zA-Z]{5})$|^$/;
return teamCoderegex.test(v);
},
message:
Expand Down

0 comments on commit 5aabaaf

Please sign in to comment.