Skip to content

Commit

Permalink
fix: 이모지 어노테이션 검증 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
김원경 committed Jul 5, 2024
1 parent ef98dc8 commit 3d1e25d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public void initialize(NotEmoji constraintAnnotation) {

@Override
public boolean isValid(String field, ConstraintValidatorContext constraintValidatorContext) {
if (field == null) {
return true;
}
Matcher emojiMatcher = EMOJI_PATTERN.matcher(field);
if (emojiMatcher.find()) {
return false;
Expand Down

0 comments on commit 3d1e25d

Please sign in to comment.