Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
5d1c671401
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     }