Open
Conversation
GPGS 로그인 수정
로그인 관련 버그 픽스 자음 과 모음 만으로 닉네임 설정 불가
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.
🧑💻 PR
🔗 관련 이슈
#162
#142
이슈 관련 버구 수정
닉네임 검사 통과 문제(자음만/모음만 허용) 수정
🔥 작업 내용 요약
Feat – 닉네임 유효성 규칙 추가: “자음만” 또는 “모음만”으로만 구성된 닉네임 금지
Feat – NicknameRules.cs 유틸 신규 추가(한글 자모/음절 판별 포함)
Fix – 닉네임 입력 UI(NicknamePopup 등)에서 확인 버튼 클릭 시 신규 규칙 적용
정규식 상수에 “자음만/모음만” 패턴 추가
자음(ㄱ
ㅎ 등): \u3131-\u314E(Compatibility Jamo), \u1100-\u115F(Jamo L), \uA960-\uA97F(Jamo Ext-A 일부)ㅣ 등): \u314F-\u3163(Compatibility Jamo V), \u1160-\u11A7(Jamo V)모음(ㅏ
💻 작업 구현 방법 (공통)
📝 구현 설명
닉네임의 모든 문자를 스캔해서 “한글 자모(자/모)”만으로 구성되었는지 판단합니다.
전부 자음 자모만이거나, 전부 모음 자모만이면 거절합니다.
한글 완성형 음절(가–힣), 영문/숫자/기타 문자가 하나라도 섞이면 이 규칙엔 걸리지 않습니다(즉, 통과).
요구사항이 “자음만” 또는 “모음만” 금지이므로 최소 수정 범위로 반영했습니다.
한글 호환 자모(Compatibility Jamo): U+3131–U+314E(자음), U+314F–U+3163(모음)
한글 자모(Jamo): 자음 U+1100–U+115F, 종성자음 U+11A8–U+11FF, 모음 U+1160–U+11A7
한글 음절(Syllables): U+AC00–U+D7A3 → 음절이 끼면 “자/모만” 조건이 깨지므로 통과
❓구현 의도
기존 필터는 “자음만/모음만” 닉네임을 구별하지 못해 읽기 불가/의미 불명 닉네임이 통과했습니다.
최소한의 정책 변경으로 부작용을 줄이기 위해 “전부 자음만” 또는 “전부 모음만”인 케이스만 차단합니다.
필요 시 추후 옵션으로 “자모가 섞여만 있어도 금지(엄격 모드)”로 확장 가능하도록 함수 구조를 분리
🔊 특이사항
💻 버그 해결방법 (Fix 전용)
🔧 수정된 버그
닉네임이 자음만(예: ㄱㄴㄷ, ㅎㅎㅎ) 또는 모음만(예: ㅏㅣㅗ)일 때도 통과하던 문제
💡 해결방법
NicknameRules.IsOnlyConsonantJamo() / IsOnlyVowelJamo() 검사로 전부 자음/전부 모음 케이스를 판별하고 거절
✔️ 버그 체크리스트
💬 기타 사항
✅ PR 체크리스트
💬 기타 사항