Move first batch of util fns to graph-parser.util

Still need to fix external.roam
This commit is contained in:
Gabriel Horner
2022-05-03 16:59:41 -04:00
parent af4b55c870
commit 85bd1fecb2
43 changed files with 211 additions and 166 deletions

View File

@@ -13,7 +13,8 @@
[frontend.db.rules :as rules]
[frontend.template :as template]
[frontend.text :as text]
[frontend.util :as util]))
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]))
;; Query fields:
@@ -447,7 +448,7 @@ Some bindings in this fn:
(remove string/blank?)
(map (fn [x]
(if (or (contains? #{"+" "-"} (first x))
(and (util/safe-re-find #"\d" (first x))
(and (gp-util/safe-re-find #"\d" (first x))
(some #(string/ends-with? x %) ["y" "m" "d" "h" "min"])))
(keyword (name x))
x)))