make marker-pattern to a function

This commit is contained in:
llcc
2022-03-02 10:14:56 +08:00
parent c250ca7f40
commit 94b152ae61
3 changed files with 7 additions and 5 deletions

View File

@@ -339,7 +339,7 @@
[block value]
(if (and (state/enable-timetracking?)
(not= (:block/content block) value))
(let [new-marker (last (util/safe-re-find marker/marker-pattern (or value "")))
(let [new-marker (last (util/safe-re-find (marker/marker-pattern) (or value "")))
new-value (with-marker-time value block (:block/format block)
new-marker
(:block/marker block))]