"Add to dictionary" and fixing spelling deletes characters it shouldn't

Steps to reproduce

In the editor, type something along these lines:

wordthatdoesnotexist-test
(anotherwordnonexist)
qauntitative-test
(qauntitative)

For the first two click “Add to dictionary”

For the second two, you should be able to correct them to “quantitative”

Expected result

It should either add the words to the dictionary or fix the spelling without changing anything in the editor

Actual result

On the “-” examples, the “-test” text gets erased, on the others, the “)” gets erased.

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.9.17

This has already been reported. Please, search before posting.

Oh ok sorry about that, thanks