mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
chore: replace re-find with safe-re-find
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
(if-let [matches (seq (util/re-pos new-line-re-pattern content))]
|
||||
(let [[start-pos content] (last matches)]
|
||||
(+ start-pos (count content)))
|
||||
(count (re-find re-pattern content)))
|
||||
(count (util/safe-re-find re-pattern content)))
|
||||
skip-marker-pos
|
||||
(if-let [matches (seq (util/re-pos marker/bare-marker-pattern (subs content skip-hash-pos)))]
|
||||
(let [[start-pos content] (last matches)]
|
||||
|
||||
Reference in New Issue
Block a user