fix: copying whiteboard shapes into outliner

This commit is contained in:
Peng Xiao
2022-11-19 13:22:42 +08:00
committed by Tienson Qin
parent b9f3bee43c
commit e9edd91003

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]