Move gp-util and gp-config to the common dep

This commit is contained in:
Tienson Qin
2024-01-03 16:38:05 +08:00
parent 46eacf6740
commit b7d9098e80
88 changed files with 498 additions and 505 deletions

View File

@@ -5,7 +5,7 @@
[lambdaisland.glogi :as log]
[cljs-bean.core :as bean]
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]
[logseq.common.util :as common-util]
[frontend.util.text :as text-util]))
(defn diff
@@ -55,7 +55,7 @@
(+ pos 2)
(contains? inline-special-chars (util/nth-safe markup pos))
(let [matched (->> (take-while inline-special-chars (gp-util/safe-subs markup pos))
(let [matched (->> (take-while inline-special-chars (common-util/safe-subs markup pos))
(apply str))
matched? (and current-line (string/includes? current-line (string/reverse matched)))]
(if matched?