Files
logseq/pages/BrokenReferences.md
2025-06-05 22:07:12 +02:00

15 lines
407 B
Markdown

icon:: ✂️
- #+BEGIN_QUERY
{:title "Broken references"
:query [:find (pull ?b [*])
:in $ ?matcher
:where [(re-pattern ?matcher) ?regex]
[?b :block/content ?c]
[(re-find ?regex ?c)]
[?b :block/refs ?br]
[(missing? $ ?br :block/content)]
[(missing? $ ?br :block/name)] ]
:inputs ["\\([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\)"]
:table-view? false}
#+END_QUERY