Explorar o código

fix iframe mode with hash-links

REJack %!s(int64=3) %!d(string=hai) anos
pai
achega
26c84e39a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      build/js/IFrame.js

+ 1 - 1
build/js/IFrame.js

@@ -142,7 +142,7 @@ class IFrame {
       return
     }
 
-    const uniqueName = link.replace('./', '').replace(/["&'./:=?[\]]/gi, '-').replace(/(--)/gi, '')
+    const uniqueName = link.replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '')
     const navId = `tab-${uniqueName}`
 
     if (!this._config.allowDuplicates && $(`#${navId}`).length > 0) {