Parcourir la source

fix: support comma in Chinese

Tienson Qin il y a 3 ans
Parent
commit
baba078323
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      deps/graph-parser/src/logseq/graph_parser/text.cljs

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

@@ -129,7 +129,7 @@
   [s]
   [s]
   {:pre (string? s)}
   {:pre (string? s)}
   (->>
   (->>
-   (string/split s #",")
+   (string/split s #"[\,,]{1}")
    (map string/trim)
    (map string/trim)
    (remove string/blank?)
    (remove string/blank?)
    (set)))
    (set)))