Browse Source

fix: alias support chinese comma

Tienson Qin 5 năm trước cách đây
mục cha
commit
fdd3782ba2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/main/frontend/format/mldoc.cljs

+ 2 - 2
src/main/frontend/format/mldoc.cljs

@@ -32,9 +32,9 @@
 (defn- sep-by-quote-or-space-or-comma
   [s]
   (when s
-    (let [comma? (re-find #"," s)]
+    (let [comma? (re-find #"[,|,]+" s)]
       (some->>
-       (string/split s #"[\"|\,]{1}")
+       (string/split s #"[\"|\,|,]{1}")
        (remove string/blank?)
        (map (fn [s]
               (if (and (not comma?)