mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-04 10:14:47 +00:00
utils: get help info: fix normalization with multiple minuses
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1f905769b1
commit
63ec56e5bc
@ -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.replace(/_/g, '-');
|
||||
if (helpMap[section_minus_normalized]) {
|
||||
return helpMap[section_minus_normalized];
|
||||
}
|
||||
let section_underscore_normalized = section.replace(/-/, '_');
|
||||
let section_underscore_normalized = section.replace(/-/g, '_');
|
||||
return helpMap[section_underscore_normalized];
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user