Yuki Takei 8 лет назад
Родитель
Сommit
5d1c671401
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      resource/js/legacy/crowi.js

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

@@ -43,7 +43,7 @@ Crowi.appendEditSectionButtons = function(contentId, markdown) {
     // https://regex101.com/r/y5rpO5/1
     const regexp = new RegExp(`[^\r\n]*#+[^\r\n]*${text}[^\r\n]*`);
     let position = markdown.search(regexp);
-    if (position < 0) { // if not found, search text only
+    if (position < 0) { // if not found, search with header text only
       position = markdown.search(text);
     }