]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/Utils.js
Utils: fix help section normalization
[proxmox-widget-toolkit.git] / src / Utils.js
index 7710e39d084f78237ef344af618dc277084a687c..781c95d7fc79ce25a31d936b82e172f6387b0695 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.replace(/_/, '-');
+       let section_minus_normalized = section.replaceAll('_', '-');
        if (helpMap[section_minus_normalized]) {
            return helpMap[section_minus_normalized];
        }
-       let section_underscore_normalized = section.replace(/-/, '_');
+       let section_underscore_normalized = section.replaceAll('-', '_');
        return helpMap[section_underscore_normalized];
     },