Skip to content

Commit

Permalink
fix: '@', '-', '.' allowed for wallet name
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiyuSun committed Jul 19, 2023
1 parent ad132ca commit 9f24e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlers/walletHandler/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const walletGetTrustRelationshipsSchema = Joi.object({
});

const walletPostSchema = Joi.object({
wallet: Joi.string().required().max(50).min(3).trim(true).regex(new RegExp('^[A-Za-z0-9-]+$')),
wallet: Joi.string().required().max(50).min(3).trim(true).regex(new RegExp('^[A-Za-z0-9-@.]+$')),
});

module.exports = {
Expand Down

0 comments on commit 9f24e6d

Please sign in to comment.