fix: copying whiteboard shapes into outliner

pull/4140/head
Peng Xiao 2022-11-19 13:22:42 +08:00 committed by Tienson Qin
parent b9f3bee43c
commit e9edd91003
1 changed files with 3 additions and 2 deletions

View File

@ -68,8 +68,9 @@
(defn- get-whiteboard-tldr-from-text
[text]
(when-let [matched-text (util/safe-re-find #"<whiteboard-tldr>(.*)</whiteboard-tldr>" text)]
(try-parse-as-json (gp-util/safe-decode-uri-component (second matched-text)))))
(when-let [matched-text (util/safe-re-find #"<whiteboard-tldr>(.*)</whiteboard-tldr>"
(gp-util/safe-decode-uri-component text))]
(try-parse-as-json (second matched-text))))
(defn- get-whiteboard-shape-refs-text
[text]