Skip to content

Commit f034d6f

Browse files
authored
Merge pull request #156 from Pinback-Team/feat/#155
feat: 메모 글자수 500자 초과 제한으로 수정
2 parents 1e73655 + 2904c46 commit f034d6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

application/src/main/java/com/pinback/application/article/usecase/command/CreateArticleUsecase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void validateArticleCreation(User user, ArticleCreateCommand command) {
7979
throw new ArticleAlreadyExistException();
8080
}
8181

82-
if (TextUtil.countGraphemeClusters(command.memo()) >= MEMO_LIMIT_LENGTH) {
82+
if (TextUtil.countGraphemeClusters(command.memo()) > MEMO_LIMIT_LENGTH) {
8383
throw new MemoLengthLimitException();
8484
}
8585
}

application/src/main/java/com/pinback/application/article/usecase/command/UpdateArticleUsecase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void updateArticle(User user, long articleId, ArticleUpdateCommand comman
4848
}
4949

5050
private void validateMemoLength(String memo) {
51-
if (TextUtil.countGraphemeClusters(memo) >= MEMO_LIMIT_LENGTH) {
51+
if (TextUtil.countGraphemeClusters(memo) > MEMO_LIMIT_LENGTH) {
5252
throw new MemoLengthLimitException();
5353
}
5454
}

0 commit comments

Comments
 (0)