You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exact matching of a whitespace followed by double quote and text gets broken into parts #810
It seems I have run into an edge case with the exact matching. The SPACE_RE regex does not handle an edge case that from time to time occurs in my usage.
I managed to narrow it down to a string where a text is followed by a whitespace, followed by a double quote and then text. This gets erroneously split into two query parts on the whitespace, even though it was meant to be a single exact match query. I've set up a few tests at https://regex101.com/r/jlilH6/5 to try and wrap my head around it.
The Fuse.js version where this bug is happening.
6.6.2
Is this a regression?
This is a regression bug
Which version did this behavior use to work in?
None
Steps To Reproduce
Run a search with the string ="said "test"
Set a breakpoint in the parseQuery(pattern) method
Observe item: "=\"said \"test\"" and query: ['="said', '"test"']
Expected behavior
I expected it to keep the exact match intact, and therefor to see at step 3 query: ['="said "test"']
Fixed in c226523. The SPACE_RE regex has been replaced with a proper tokenizer that correctly handles multi-match quoted tokens containing inner spaces and quotes.
="said "test" now correctly tokenizes as a single exact-match for said "test instead of being split into two tokens.
Activity
github-actions commentedon Mar 20, 2026
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
krisk commentedon Apr 2, 2026
Fixed in c226523. The
SPACE_REregex has been replaced with a proper tokenizer that correctly handles multi-match quoted tokens containing inner spaces and quotes.="said "test"now correctly tokenizes as a single exact-match forsaid "testinstead of being split into two tokens.