krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.14k stars 767 forks source link

Allow quoted searches containing newlines #697

Closed bschlenk closed 10 months ago

bschlenk commented 1 year ago

Fixes https://github.com/krisk/Fuse/issues/696

The multiRegex values were not matching newlines because . in a regex doesn't match newlines by default. Adding /s makes the . match them.

Added a new test.