Bug Report: Search query fails with double-digit number prefix and multiple exclusions
Steps to reproduce:
-
Create several notes named with numbers, e.g.,
3[Name].mdand12[Name].md. -
In another note, link to these files:
[[3[Name]]]and[[12[Name]]]. -
Add a tag next to some of these links:
#s_stu/spot. -
Use the following
queryblock to search:-
For single-digit:
query "[[3[Name]]]" -file:3[Name] -#s_stu/spot→ Works correctly. -
For double-digit:
query "[[12[Name]]]" -file:12[Name] -#s_stu/spot→ Returns “No results found” (Fails).
-
Expected result:
Both queries should return results that exclude the file itself and the specific tag.
Actual result:
The query fails specifically when the search term starts with a double-digit number (10 or above) AND multiple exclusions (-file and -#tag) are used simultaneously. If the tag exclusion -# is removed, the query works again even for double-digits.
Environment:
-
Obsidian version: v1.12.7
-
Installer version: v1.7.7
-
OS: [ Windows 10]