Commit b33dec1
committed
fix: strip # prefix from tags in isTaskFile for tag-based identification
Obsidian's metadata cache prepends '#' to frontmatter tag values
(e.g., tags: [task] becomes ["#task"] in cache.frontmatter.tags).
isTaskFile passes these raw values to matchesHierarchicalTagExact,
which compares "#task" against the taskTag setting value "task" and
fails to match.
Strip the '#' prefix before comparing so tag-based task identification
works correctly without requiring users to set taskTag to "#task".1 parent 7963b82 commit b33dec1
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
0 commit comments