News for hackers. Stuff that matters.
Re:Inside Wade, a 1kb search library by venning on Wednesday July 19, 2017 @01:51PM (#14806314)
Okay, I gotcha with the [1, 1].

I'm still curious about using it. The GitHub example [1] works as described, but I can't get a result from the 'he' example. Is it saying no match was found by returning an empty array?

EDIT: Okay, saw your edit. Might be nice to use an example that's not a stopword. ;) Nice work on the library and the blog post.

[1] https://github.com/KingPixil/wade#usage

Re:Inside Wade, a 1kb search library by kbr on Wednesday July 19, 2017 @01:59PM (#14806397)
Cool, glad you understood. The library returns an array of results, and will return an empty array if there are none. Try searching for "h" or "hey" for an example.