Skip to content

Commit

Permalink
Merge branch 'seminar1' into seminar1-deep
Browse files Browse the repository at this point in the history
  • Loading branch information
choyeongju authored Oct 12, 2024
2 parents 18b978b + 0d2b8b2 commit 0df6c06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/sopt/week1/DiaryValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ public static void validate(final String body){
if(body.trim().isEmpty()){
throw new InvalidInputException();
}
int graphemeCount = countGraphemeClusters(body);
if(graphemeCount > 30){
if(body.length() > 30){
throw new DiaryBodyLengthException();
}
}
Expand Down

0 comments on commit 0df6c06

Please sign in to comment.