mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-01 03:19:20 +08:00
fix(server): not being able to view profiles which had a dot in the name
This commit is contained in:
parent
16f248d9de
commit
1cabbaa3e8
1 changed files with 7 additions and 3 deletions
|
@ -514,9 +514,13 @@ router.get(
|
|||
withApeRateLimiter(RateLimit.userProfileGet),
|
||||
validateRequest({
|
||||
params: {
|
||||
uidOrName: joi
|
||||
.alternatives()
|
||||
.try(usernameValidation, joi.string().token().max(50)),
|
||||
uidOrName: joi.alternatives().try(
|
||||
joi
|
||||
.string()
|
||||
.regex(/^[\da-zA-Z._-]+$/)
|
||||
.max(16),
|
||||
joi.string().token().max(50)
|
||||
),
|
||||
},
|
||||
query: {
|
||||
isUid: joi.string().valid("").messages({
|
||||
|
|
Loading…
Reference in a new issue