Search tab: incorrect regex console output

Steps to reproduce

typing a wrong pattern into search tab as \adzcds \

Did you follow the troubleshooting guide? [Y/N]

y

Expected result

the error should be handed by a try catch. And in my opinion it would help
A message appear instead of “No matched found” → “Wrong pattern” detecting the first antislash

Actual result

error in the dev console

Environment

Windows 11. Obsidian version: v1.9.6


Additional information

we do show the error if you enable “explain search term”

1 Like