2021年5月1日星期六

Fuse.js includeMatches highlighting - How does it work?

I'm using the Fuse.js library in my Next JS/Typescript web application. I'm unsure of how the includeMatches option works for highlighting purposes. If I use that option, I get a matches object in the result object that contains a whole bunch of from and to indexes and it seems to be way more than is being actually matched.

How can I use this array for highlighting purposes? Anyone?

https://stackoverflow.com/questions/67352406/fuse-js-includematches-highlighting-how-does-it-work May 02, 2021 at 10:08AM

没有评论:

发表评论