Skip to content

Commit

Permalink
OV-3: * applying lint format
Browse files Browse the repository at this point in the history
  • Loading branch information
JPjok3r committed Aug 21, 2024
1 parent 6fe3503 commit 53c0a6a
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ type UserSignUpRequestValidationDto = {

const userSignUp = z
.object<UserSignUpRequestValidationDto>({
fullName: z.string({ required_error: UserValidationMessage.FIELD_REQUIRE })
fullName: z
.string({ required_error: UserValidationMessage.FIELD_REQUIRE })
.trim()
.refine((value) => value.split(/\s+/).length >= UserValidationRule.FULL_NAME_MINIMUM_WORD_LENGTH, {
message: UserValidationMessage.NAME_MIN_TWO_WORDS,
}),
.refine(
(value) =>
value.split(/\s+/).length >=
UserValidationRule.FULL_NAME_MINIMUM_WORD_LENGTH,
{
message: UserValidationMessage.NAME_MIN_TWO_WORDS,
},
),
email: z
.string({ required_error: UserValidationMessage.FIELD_REQUIRE })
.trim()
Expand Down

0 comments on commit 53c0a6a

Please sign in to comment.