toss / es-hangul

A modern JavaScript library for handling Hangul characters.
https://es-hangul.slash.page/
MIT License
1.34k stars 95 forks source link

fix: 인자로 빈 문자열이 들어올 경우 얼리리턴하도록 수정 #86

Closed kangju2000 closed 6 months ago

kangju2000 commented 6 months ago

Overview

[as-is]

hasBatchimhasSingleBachim 함수의 인자로 ''가 들어오는 경우 다음과 같은 에러가 발생합니다.

image

[to-be]

인자로 ''가 들어오는 경우 false로 얼리리턴하여 에러가 발생하지 않도록 수정합니다.

PR Checklist

  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.
changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 3d34ed3434fa206ee01f74fb632f99d6db95619f

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

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-hangul ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 4, 2024 2:52pm