Преглед изворни кода

#11046 use replace-first instead of replace

j-ramos пре 1 година
родитељ
комит
6196c61d6d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -2347,7 +2347,7 @@
     (save-block-if-changed!
     (save-block-if-changed!
       block
       block
       (if (= new-content content)
       (if (= new-content content)
-        (replace-first (string/replace old-item-content "[X]" "[x]"))
+        (replace-first (string/replace-first old-item-content "[X]" "[x]"))
         new-content))))
         new-content))))
 
 
 (defn- dwim-in-list
 (defn- dwim-in-list