Closed gbubemismith closed 2 years ago
We could look into extending Lunr to be unicode safe per https://github.com/olivernn/lunr.js/issues/269. The last gist is compatible with 2 but not something I've used.
We could look into extending Lunr to be unicode safe per olivernn/lunr.js#269. The last gist is compatible with 2 but not something I've used.
I would look into this right away
We could look into extending Lunr to be unicode safe per olivernn/lunr.js#269. The last gist is compatible with 2 but not something I've used.
@Hinton I was able to customise lunr and added a pipeline function to handle accented characters. This is a cleaner approach as we follow DRY principle.
Type of change
Objective
Ignore accented characters in vault searches.
Code changes
normalizeAccentsPipelineFunction
to strip off the accented characters during search. The pipeline function is registered and the added to the pipeline.Before you submit
npm run lint
) (required)