-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 욕설 필터링 업그레이드 #69
Conversation
# Conflicts: # src/main/java/org/sopt/lequuServer/domain/book/dto/request/BookCreateRequestDto.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋네요. 아주 좋아요.
public BadWordFilterService() throws IOException { | ||
badWordFiltering = new BadWordFiltering(); | ||
public BadWordFilterService(BadWordLogRepository badWordLogRepository) throws IOException { | ||
badWordFiltering = new BadWordFiltering("♡"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
하트로 잘 바꼈군요!ㅋㅎ
if (!changedWord.equals(string)) { | ||
badWordLogRepository.save(BadWordLog.of(memberId, string)); | ||
|
||
String[] split = changedWord.split(" "); | ||
List<String> result = new ArrayList<>(); | ||
|
||
for (String s : split) { | ||
if (s.contains("♡")){ | ||
result.add(s.replaceAll(".", "♡")); | ||
continue; | ||
} | ||
result.add(s); | ||
} | ||
return String.join(" ", result); | ||
} | ||
|
||
return changedWord; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
와우 직접 바꿨네요 :)
# Conflicts: # src/main/java/org/sopt/lequuServer/domain/note/facade/NoteFacade.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
김동휘 .. 그는 신인가 .....
📌 관련 이슈
closed #68
✨ 어떤 이유로 변경된 내용인지
🙏 검토 혹은 리뷰어에게 남기고 싶은 말