Skip to content

Commit

Permalink
fix/change-user-name-validation: Endabled character | (pipe) in the u…
Browse files Browse the repository at this point in the history
…ser name (#443)
  • Loading branch information
BEdev24 authored Nov 4, 2024
1 parent bc4b736 commit 539fb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/users/api/request/update-user.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class UpdateUserRequest {
})
@MinLength(2, { message: `Minimum character length is 2` })
@MaxLength(30, { message: `Maximum character length is 30` })
@Matches(/^[a-zA-Z0-9_.\s]+$/, {
@Matches(/^[a-zA-Z0-9_|.\s]+$/, {
message: `Name can't contain special characters & symbols`,
})
@IsString()
Expand Down

0 comments on commit 539fb47

Please sign in to comment.