F--L
foolishly simple bi-directional wildcards!
For the single directional wildcard, ie: test t*st, we adapted matcher to work for node 0.10 up to 8+
In the quest for the bi-directional wildcard, we have found a solution in converting the 2 search terms to a 2d matrix, which we iterate through to find diagonals, this is an adaption of Levenshtein's distance algorithm with wildcards
quickstart
npm i f--l --save
var expect = ;var Fool = ; var noFoolLikeA = cache:1000;//caches replies, default is false to;to;to;to;to;to;to;to;to;to;to;to;to;to;to;to; //for more f***ing around, have a look at the tests
performance:
supported node versions:
v0.10 - v8
caveats
- double wildcard matches are about 30% slower than single matches
- synchronous/blocking (this may or may not be a caveat)
- a wildcard is a placeholder for anything and nothing
- this is quite experimental - if you want to use this to land aircraft or operate cranes, please test, test, test and get back to me if you find anything that doesnt work