Browse Source

Some cleanup suggested by Gabe

Tienson Qin 3 years ago
parent
commit
da72d4d620

+ 2 - 4
deps/graph-parser/src/logseq/graph_parser/text.cljs

@@ -129,7 +129,7 @@
   [s]
   (when s
     (some->>
-     (string/split s #"[\,|,]{1}")
+     (string/split s #",")
      (remove string/blank?)
      (map string/trim))))
 
@@ -153,9 +153,7 @@
                    [(string/trim v)]))
                 refs)
         k (if (or (symbol? k) (keyword? k)) (subs (str k) 1) k)
-        v (if (or (symbol? v) (keyword? v))
-            (subs (str v) 1)
-            (str v))
+        v (subs (str v) 1)
         v (string/trim v)
         non-string-property (parse-non-string-property-value v)]
     (cond

+ 0 - 1
src/main/frontend/components/block.cljs

@@ -1916,7 +1916,6 @@
         ;; because :block/properties value only contains refs but user wants to see text
         property-separated-by-commas? (text/separated-by-commas? (state/get-config) k)
         v (if (and (coll? value) (seq value)
-                   (not (contains? gp-property/editable-linkable-built-in-properties k))
                    (not property-separated-by-commas?))
             (gp-property/property-value-from-content (name k) (:block/content block))
             value)