by sync · 11y ago · 0 comments
fuzzysearch('twl', 'cartwheel') // <- true
The string 'cartwheel' does not contain the string 'twl' directly. new RegExp("twl".split("").join("(.+)?")).test("cartwheel")
does approximately the same, no?You can also use ".*" to replace "(.+)?" in your regex.
If you're building your own search engine, which you probably shouldn't, I'd look elsewhere.
Our jobs are real-time where the user is awaiting a response. So probably not limiting factor for jobs that can be run on your own time.
"anyone" with over 400 bytes, you mean.