From 26c84e39a30e8993dcb37b386a1c11ec5e7bf0be Mon Sep 17 00:00:00 2001 From: REJack Date: Thu, 29 Jul 2021 22:22:26 +0200 Subject: [PATCH] fix iframe mode with hash-links --- build/js/IFrame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/js/IFrame.js b/build/js/IFrame.js index 0d4e9de86..2b1e1e7bb 100644 --- a/build/js/IFrame.js +++ b/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) {