[(potential) bug]: Newline character in field's html disrupts search for wildcard fields

Steps to reproduce:

  1. Create a note of Basic note type
  2. Paste the following into the Front field’s HTML editor:
    <div>
      somestring
    </div>
    
  3. Searching for *:*somestring* in browser does not find the note

If the field’s content is reformatted to a single line:

<div>somestring</div>

searching for *:*somestring* does find the note, as expected.

Searching for simply somestring or for F*:*somestring*, *t:*somestring* and even **:*somestring* does correctly find the note regardless of HTML formatting.
I’m not sure if this is intended behaviour, as the manual does not explicitly mention searches for fields specified as a single *, but the results at least seem oddly inconsistent.

(this was tested on 25.02.3, but the issue have been present in previous versions as well)

3 Likes

Surprised this went unnoticed for so long, but then again TIL on *:... for searching all fields :sweat_smile:

Opened a pr

6 Likes