We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I search using includeMatches option and when the pattern contains round brackets ( or ) the returned indexes are incorrect
includeMatches
(
)
7.0.0
I created a complete example to reproduce the issue at https://stackblitz.com/edit/vitejs-vite-ml32lm?file=main.js
As you can see in the first case the returned indexes are identical
Index 0 start 0 end 25
Index 1 start 0 end 25
In second case the index at 1 differs from start only by 1, this create incorrect results when I highlight in HTML
Index 0 start 0 end 23
Index 1 start 1 end 23
I expect no duplicated indexes and start at index >= 1 always greater than previous end valuey
No response
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Description of the bug
I search using
includeMatches
option and when the pattern contains round brackets(
or)
the returned indexes are incorrectThe Fuse.js version where this bug is happening.
7.0.0
Is this a regression?
Which version did this behavior use to work in?
7.0.0
Steps To Reproduce
I created a complete example to reproduce the issue at https://stackblitz.com/edit/vitejs-vite-ml32lm?file=main.js
As you can see in the first case the returned indexes are identical
Index 0 start 0 end 25
Index 1 start 0 end 25
In second case the index at 1 differs from start only by 1, this create incorrect results when I highlight in HTML
Index 0 start 0 end 23
Index 1 start 1 end 23
Expected behavior
I expect no duplicated indexes and start at index >= 1 always greater than previous end valuey
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: