Skip to content

Commit

Permalink
✨ [FEAT] 유저 닉네임 정규표현식 수정 및 차단 핸드폰 번호 정규식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jang99u committed Jan 24, 2025
1 parent ce6d7cb commit 52533da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class BlockEntity {
private Long id;

@Column(name = "phone_number", nullable = false)
@Pattern(regexp = "^01([0|1|6|7|8|9])\\d{3,4}\\d{4}", message = "전화번호 형식에 맞게 입력해야 합니다.")
@Pattern(regexp = "^01([0|1|6|7|8|9])\\d{4}\\d{4}", message = "전화번호 형식에 맞게 입력해야 합니다.")
@NotBlank(message = "전화번호는 필수로 입력해야 합니다.")
private String phoneNumber;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class UserEntity {
private String phoneNumber;

@Column(name = "nickname", nullable = false)
@Pattern(regexp = "^[가-힣a-zA-Z0-9]{2,12}$", message = "한글, 영문, 숫자로 조합된 2 ~ 12자로 입력해야 합니다.")
@Pattern(regexp = "^[가-힣ㄱ-ㅎㅏ-ㅣa-zA-Z0-9]{2,12}$", message = "한글(자음/모음 포함), 영문, 숫자로 조합된 2 ~ 12자로 입력해야 합니다.")
@NotBlank(message = "닉네임은 필수로 입력해야 합니다.")
@Size(min = 2, max = 12)
private String nickname;
Expand Down

0 comments on commit 52533da

Please sign in to comment.