Explorar o código

문단 링크를 위한 id 정정

hsyoonhs %!s(int64=4) %!d(string=hai) anos
pai
achega
037dca5d01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      views/main_css/js/render_wiki.js

+ 1 - 1
views/main_css/js/render_wiki.js

@@ -55,7 +55,7 @@ function get_link_state(data) {
 function get_heading_name() {
     let heading_name = document.getElementsByClassName('render_heading_text');
     for(let i = 0; i < heading_name.length; i++) {
-        heading_name[i].id = heading_name[i].innerText.replace(/^([0-9]+\.)+ /, '').replace(/✎ ⊖$/, '');
+        heading_name[i].id = heading_name[i].innerText.replace(/^([0-9]+\.)+ /, '').replace(/ ✎ ⊖$/, '');
     }
 }