Search result lines cut at a period character

Steps to reproduce

  • Write a line “Score 12.34” to a note
  • Search by a word “Score”

Expected result

The full line “Score 12.34” should be shown

Actual result

The result lines only show “Score 12.” .

Probably it mistakingly recognises as the full stop of an English sentence, but it doesn’t make sense to cut a fraction number in the middle.

I would suggest updating the rule to trim the string after a period only followed by whilte space. This could misbehave in case of numbered lists like "Score Section 1. This is important, " but better than now.

Environment

  • MacOS 10.14.6 Mojave
  • Obsidian version: v0.8.14
2 Likes

thanks

1 Like

Hi! If a wikilink has periods in it, the search results are truncating after the first period in the wikilink

Steps to reproduce

  1. Create a note called test-birthday with the following text:
    Sally’s birthday is on [[2021.05.15]]
    Sally’s birthday is on [[2021-05-15]]

  2. Search for “Sally’s Birthday” (either in the search bar or with query in code block)

  3. The results will show as
    test-birthday
    Sally’s Birthday is on [[2021.
    Sally’s Birthday is on [[2021-05-15]]

Expected result

The first match returned should show the full line
Sally’s Birthday is [[2021.05.15]] like the second line with dashes does

Actual result

the rest of the line is truncated after [[2021.

Environment

  • Operating system: MacOS 10.15.7
  • Obsidian version: v0.10.2

Additional information

Thanks!

we should trunctate at . insted of just .
Not sure if there are conflicts with eastern languages.

1 Like

The same when searching for standard url “https://forum.obsidian” on Windows 7, Obsidian v0.10.7

It cut off a line at the period in “Set up 21.1 build on remote”. It shows as “Set up 21.” It’s not currently sensitive to a trailing space on 0.10.11 on Mac.

Personally I’d prefer it included everything until a line break, but it definitely shouldn’t be cutting off version numbers.

1 Like