From 1f905769b1bfe74c56004392e4d242a6420c3e4b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 Nov 2020 16:26:27 +0100 Subject: [PATCH] Revert "Utils: fix help section normalization" replaceAll is not supported by all browser we try to guarantee to support. This reverts commit f7b816a39987b37ebcc976eb78cf33da2ad37bf3. --- src/Utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils.js b/src/Utils.js index 781c95d..7710e39 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -777,11 +777,11 @@ utilities: { } // try to normalize - and _ separators, to support asciidoc and sphinx // references at the same time. - let section_minus_normalized = section.replaceAll('_', '-'); + let section_minus_normalized = section.replace(/_/, '-'); if (helpMap[section_minus_normalized]) { return helpMap[section_minus_normalized]; } - let section_underscore_normalized = section.replaceAll('-', '_'); + let section_underscore_normalized = section.replace(/-/, '_'); return helpMap[section_underscore_normalized]; },