Conversation
3 tasks
OneTen19
reviewed
Feb 12, 2026
Member
OneTen19
left a comment
There was a problem hiding this comment.
신고할 때 텍스트 100자 제한인데 기획에서 띄어쓰기 제외하고 100자라고 해줬거던요. 그러면 엄청나게 많은 공백만 서버에 보내는 게 가능해지는데 괜찮은 걸까요.?
trimmingCharacters(in:) 메서드의 whitespacesAndNewlines로 관리하면 될 것 같아요
Yeonnies
approved these changes
Feb 14, 2026
| } | ||
|
|
||
| TextEditor(text: $viewModel.reportContent) | ||
| .maxLength(100, text: $viewModel.reportContent) |
Contributor
There was a problem hiding this comment.
p3
이렇게 하면 공백 제외 100글자가 되나영?
Contributor
Author
There was a problem hiding this comment.
아니영.. 공백 제외 추가했어요
| .padding(.bottom, 20) | ||
| } | ||
|
|
||
| private func bullet(_ text: String) -> some View { |
|
|
||
| switch result { | ||
| case .success: | ||
| logger.error("✅ 댓글 신고 성공") |
OneTen19
reviewed
Feb 14, 2026
| return state == .anticipated || state == .acquisition | ||
| } | ||
| var reportContentCountWithoutWhitespace: Int { | ||
| reportContent.filter { !$0.isWhitespace }.count |
Member
There was a problem hiding this comment.
whitespace만 하면 띄어쓰기는 걸러줘도 개행문자는 안 걸러질텐데 이건 의도하신걸까요??
Contributor
Author
There was a problem hiding this comment.
whitespace만 해도 개행은 카운트가 안 되길래 찾아봤는데 whitespace에 \t, \n 같은 공백들도 포함되더라고여. 그치만 명시적으로 나타내기 위해서 isNewline도 추가하였습니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌴 작업한 브랜치
feat/#212✅ 작업한 내용
❗️PR Point
신고할 때 텍스트 100자 제한인데 기획에서 띄어쓰기 제외하고 100자라고 해줬거던요. 그러면 엄청나게 많은 공백만 서버에 보내는 게 가능해지는데 괜찮은 걸까요.?
📸 스크린샷
📟 관련 이슈