Closed Leftium closed 8 years ago
When the needle parameter of rangeSearch() is passed '' (empty string) the browser hangs with an infinite loop.
needle
rangeSearch()
''
rangeSearch() should return an empty array if needle is an empty string.
What a big mistake! I fixed it. Thanks!
When the
needle
parameter ofrangeSearch()
is passed''
(empty string) the browser hangs with an infinite loop.rangeSearch()
should return an empty array ifneedle
is an empty string.