Infinite loop when Hangul.rangeSearch() for empty string ''
Leftium opened this issue · comments
John-Kim Murphy commented
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.
Jaemin Jo commented
What a big mistake! I fixed it. Thanks!