Closed sulf closed 4 years ago
A couple of things:
lib/tokenizer.js
, lunr.js
is a build artefact and is generated from the sources in lib
.Taking a look at the code it looks like the trim
is redundant because of the whitespace separator check and token length check. It looks like the default lunr.tokenizer.separator
is a superset of those removed by String#trim
so should be fine.
This has been done now (with tests 😉 ) in #418
Fixes issue #386