mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-11-02 16:23:07 +00:00
Revert "Utils: fix help section normalization"
replaceAll is not supported by all browser we try to guarantee to
support.
This reverts commit f7b816a399.
This commit is contained in:
parent
4b21b8cc8e
commit
1f905769b1
@ -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];
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user