Skip to content

Commit

Permalink
fix: RegexConstant 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Feb 8, 2024
1 parent 9f6e251 commit 10cb890
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 @@ -13,4 +13,4 @@ public record MemberUpdateRequest(
@NotNull String department,
@NotNull @Email String email,
@NotNull String discordUsername,
@NotNull @Pattern(regexp = DISCORD_NICKNAME) String discordNickname) {}
@NotNull @Pattern(regexp = NICKNAME) String discordNickname) {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class RegexConstant {
public static final String STUDENT_ID = "^[A-C]{1}[0-9]{6}$";
public static final String PHONE = "^010-[0-9]{4}-[0-9]{4}$";
public static final String DISCORD_NICKNAME = "[ㄱ-ㅣ가-힣]{1,6}$";
public static final String NICKNAME = "[ㄱ-ㅣ가-힣]{1,6}$";

private RegexConstant() {}
}

0 comments on commit 10cb890

Please sign in to comment.