mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-27 16:13:56 +00:00
Utils: fix help section normalization
We need to replace all occurences when normalizing underscores or dashes. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
parent
5efbff97f8
commit
f7b816a399
@ -777,11 +777,11 @@ utilities: {
|
|||||||
}
|
}
|
||||||
// try to normalize - and _ separators, to support asciidoc and sphinx
|
// try to normalize - and _ separators, to support asciidoc and sphinx
|
||||||
// references at the same time.
|
// references at the same time.
|
||||||
let section_minus_normalized = section.replace(/_/, '-');
|
let section_minus_normalized = section.replaceAll('_', '-');
|
||||||
if (helpMap[section_minus_normalized]) {
|
if (helpMap[section_minus_normalized]) {
|
||||||
return 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];
|
return helpMap[section_underscore_normalized];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user