should `intraMode: 1` allow errors in the last char?
leeoniya opened this issue · 2 comments
To me it sounds reasonable, probably what you expect when allowing 1 error that there is not distinction if it is in between or at the end of the string.
should work now. i also tightened some rules for terms < 5 chars. e.g. you really don't want to match every term that contains ble
when searching blue
due to allowing single deletion of "u".
if you actually want to do this, there is now intraSlice
and intraRules
options that allows for tweaking per-term in the needle exactly what is required. the defaults are currently set to intraSlice: [1, Infinty]
(allows errors in all but first char) and intraRules
which limits what types of errors are tolerated in short terms:
Lines 113 to 153 in 4b1249a