e- / Hangul.js

한글 자음/모음 분리/조합 자바스크립트 라이브러리. 자바스크립트 한글 오토마타 구현체입니다.

Home Page:https://e-.github.io/Hangul.js/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinite loop when Hangul.rangeSearch() for empty string ''

Leftium opened this issue · comments

When the needle parameter of rangeSearch() is passed '' (empty string) the browser hangs with an infinite loop.

rangeSearch() should return an empty array if needle is an empty string.

What a big mistake! I fixed it. Thanks!