Skip to content

Commit

Permalink
Merge pull request #205 from Wingle-SMWU/add/닉네임-양식-검증-#203
Browse files Browse the repository at this point in the history
[fix] nickname 형식 유효검사 수정 (한글/영문/숫자 2-10자)
  • Loading branch information
Lightieey committed Jul 4, 2023
2 parents cdb7289 + 53d113b commit ec3718d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package kr.co.wingle.profile.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.springframework.web.multipart.MultipartFile;

Expand All @@ -20,6 +20,6 @@ public class ProfileRequestDto {
@NotNull
private boolean imageDelete;

@NotBlank(message = "닉네임이 없습니다.")
@Pattern(regexp = "^[0-9a-zA-Z가-힣]{2,10}$", message = "닉네임은 한글/영문/숫자 2자 이상 10자 미만이어야 합니다.")
private String nickname;
}

0 comments on commit ec3718d

Please sign in to comment.