Skip to content

Commit

Permalink
feat : 한글 자음, 모음도 받을 수 있도록 validator 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjiShin committed Nov 4, 2023
1 parent 1ea3894 commit 0030a32
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

public class NicknameValidator implements ConstraintValidator<NicknameCheck, String> {

private static final Pattern NICKNAME_PATTERN = Pattern.compile("^[가-힣a-zA-Z0-9]+$");

private static final Pattern NICKNAME_PATTERN = Pattern.compile("^[가-힣ㄱ-ㅎㅏ-ㅣa-zA-Z0-9]+$");

@Override
public boolean isValid(String inputNickname, ConstraintValidatorContext constraintValidatorContext) {
Expand Down

0 comments on commit 0030a32

Please sign in to comment.