mirror of https://github.com/logseq/logseq
enhance(org): replace string match with regex pattern
parent
76fbeb87de
commit
c855342bbd
|
@ -284,7 +284,7 @@
|
|||
content (reduce (fn [content key]
|
||||
(remove-property format key content)) content built-in-properties*)]
|
||||
(if (= format :org)
|
||||
(string/replace-first content ":PROPERTIES:\n:END:\n" "")
|
||||
(string/replace-first content (re-pattern ":PROPERTIES:\n:END:\n*") "")
|
||||
content)))
|
||||
|
||||
(defn ->new-properties
|
||||
|
|
Loading…
Reference in New Issue