-
Notifications
You must be signed in to change notification settings - Fork 103
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: 한글 문자를 쿼티 자판에 맞는 영문 알파벳으로 변환하는 함수를 새로 추가합니다. #324
Conversation
🦋 Changeset detectedLatest commit: b135691 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
작업해주셔서 감사해요. |
PR 본문에서의 예시처럼, 한글과 영어 입력이 혼재하는 폼에서의 유저 경험을 높이는데 도움을 줄 수 있습니다. 저는 실제로 영문명 입력 인풋에 이와 같은 로직을 적용했습니다. |
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.
깔끔하게 작성해주신 것 같아서 많이 배웠어요!
it('영문, 숫자 등 한글이 아닌 글자는 그대로 유지한다.', () => { | ||
expect(convertHangulToQwerty('FE개발!')).toBe('FEroqkf!'); | ||
}); |
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.
👍
```typescript | ||
convertHangulToQwerty('뮻'); // 'abc' | ||
convertHangulToQwerty('겨노'); // 'rush' | ||
convertHangulToQwerty('빠른 논의'); // 'Qkfms shsdml' |
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.
이건 적절하지 않는 유즈케이스인 것 같아서 제거하는것 어떨까요?
빠른 논의를 영어(Qkfms shsdml)로 변환해야하는 경우는 잘 없을 것 같아요!
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.
설명 문서에 조금 더 의미있는 예제를 추가하고, 테스트 케이스도 수정했습니다. 28b0667
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.
감사합니다!
Overview
한글 문자를 쿼티 자판에 맞는 영문 알파벳으로 변환하는 함수를 새로 추가합니다.
한글 입력이 포함되는 폼이나 서비스에서 영문만 입력 가능한 인풋이 있을 때(예:
여권 상 영문명
등), 한글 입력을 막거나 한/영 키를 안내하는 대신에 바로 영문자를 입력해줄 수 있습니다.PR Checklist