]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/Utils.js
Revert "Utils: fix help section normalization"
[proxmox-widget-toolkit.git] / src / Utils.js
index 781c95d7fc79ce25a31d936b82e172f6387b0695..7710e39d084f78237ef344af618dc277084a687c 100644 (file)
@@ -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];
     },