Skip to content

Commit

Permalink
fix: Navigating to a page through search caused Logseq to crash to a
Browse files Browse the repository at this point in the history
blank screen

#3112
  • Loading branch information
tiensonqin committed Nov 11, 2021
1 parent 5aa778b commit fa3e062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/frontend/text.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
(or (when-let [[_ label _path] (re-matches markdown-page-ref-re s)]
(string/trim label))
(when-let [[_ path _label] (re-matches org-page-ref-re s)]
(-> (get-file-basename path)
(string/replace "." "/")))
(some-> (get-file-basename path)
(string/replace "." "/")))
(-> (re-matches page-ref-re-0 s)
second))))

Expand Down

0 comments on commit fa3e062

Please sign in to comment.