Skip to content

Commit

Permalink
fix : isHangul로 대체 toss#136 으로
Browse files Browse the repository at this point in the history
  • Loading branch information
KNU-K committed Jun 29, 2024
1 parent 9c72739 commit 53544bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getHangulAcronym.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isHangulOnly } from './_internal/hangul';
import { isHangul } from './_internal/hangul';

/**
*
Expand All @@ -8,7 +8,7 @@ import { isHangulOnly } from './_internal/hangul';
* 한글 문장이 아닌, 문장은 취급하지않습니다. 추가로 한글 문장 + 영어 문장의 경우에도 취급하지않습니다.
*/
export function getHangulAcronym(text: string) {
if (!isHangulOnly(text)) {
if (!isHangul(text)) {
throw new Error('Invalid Hangul text, please input Hangul text only.');
}

Expand Down

0 comments on commit 53544bd

Please sign in to comment.