Просмотр исходного кода

#11046 use replace-first instead of replace

j-ramos 1 год назад
Родитель
Сommit
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!
       block
       (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))))
 
 (defn- dwim-in-list