bevacqua / fuzzysearch

:crystal_ball: Tiny and blazing-fast fuzzy search in JavaScript
https://ponyfoo.com
MIT License
2.71k stars 87 forks source link

What about... #7

Closed inspector-ambitious closed 9 years ago

inspector-ambitious commented 9 years ago
function fuzzysearch(query, data) {
    return (new RegExp(query.split('').join('.*'))).test(data);
}
bevacqua commented 9 years ago

Performs at ~10% of the current implementation. See https://github.com/bevacqua/fuzzysearch/pull/6#issuecomment-77272555