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 }}
Quoting a search string containing newlines with extended search syntax doesn't work #696
Searching for an exact match that contains a newline doesn't find any results.
Version
6.6.2
Is this a regression?
No
🔬Minimal Reproduction
constFuse=require('fuse.js')constbooks=[{"title": "Old Man's War","author": "John Scalzi"},{"title": "The Lock\nArtist","author": "Steve"},{"title": "Artist for Life","author": "Michelangelo"},]constoptions={useExtendedSearch: true,keys: ['title']}constfuse=newFuse(books,options)constresults=fuse.search(`'"Lock\nArtist"`)console.log(results)
Additional context
It looks like one possible fix is to add /s to all the multiRegex (like this one) so that the . also includes newlines. I'm okay with sending a PR if this solution sounds okay!
Activity
github-actions commentedon Feb 10, 2023
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