Przeglądaj źródła

Fix: return is maybe typo of replace

Sotaro KARASAWA 10 lat temu
rodzic
commit
c0e482af1c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      resource/js/crowi-form.js

+ 1 - 1
resource/js/crowi-form.js

@@ -128,7 +128,7 @@ $(function() {
         var indent = listMarkMatch[1];
         var num = parseInt(listMarkMatch[2]);
         if (num !== 1) {
-          listMark = listMark.return(/\s*\d+/, indent + (num +1));
+          listMark = listMark.replace(/\s*\d+/, indent + (num +1));
         }
       }
       $target.selection('insert', {text: "\n" + listMark, mode: 'before'});