Yuki Takei пре 8 година
родитељ
комит
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
     // https://regex101.com/r/y5rpO5/1
     const regexp = new RegExp(`[^\r\n]*#+[^\r\n]*${text}[^\r\n]*`);
     const regexp = new RegExp(`[^\r\n]*#+[^\r\n]*${text}[^\r\n]*`);
     let position = markdown.search(regexp);
     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);
       position = markdown.search(text);
     }
     }