Skip to content

[Bug]: convertQwertyToHangul에 숫자가 담긴 문자열 제공 시 오류 발생 #334

@2yunseong

Description

@2yunseong

Bug description

안녕하세요. convertQwertyToHangul에 숫자가 담긴 문자열을 제공 시 오류가 발생합니다.

예를 들어, 다음과 같은 문자열을 전달하면 오류가 발생합니다. 이는 의도된 동작일까요?

convertQwertyToHangul('slash123');  // 님노123
convertQwertyToHangul('dkdlvhs16'); // 아이폰16
convertQwertyToHangul('1qkr2dlf'); // 1박2일

아래 코드샌드박스로 재현상황 첨부합니다.

(편의를 위해 test를 작성하는 대신 공식문서처럼 console에서 테스트 해볼 수 있게 구현하였습니다.)

감사합니다.

Expected behavior

expect(convertQwertyToHangul('slash123')).toBe('님노123')  // Error
expect(convertQwertyToHangul('dkdlvhs16')).toBe('아이폰16')  // Error
expect(convertQwertyToHangul('1qkr2dlf')).toBe('1박2일')  // Error

To Reproduce

샌드박스로 갈음합니다.

위 예제 코드도 재현 가능합니다.

의도된 것이 아니라면, 로직적인 문제라 모든 플랫폼에서 재현가능하리라 생각하고 있습니다.
Code SandBox Link

Possible Solution

No response

etc.

만약 버그라면 수정을 해봐도 괜찮을까요?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions