]> git.proxmox.com Git - pve-docs.git/commit
asciidoc-pve: disallow certain characters in onlineHelp keys
authorStefan Sterz <s.sterz@proxmox.com>
Mon, 14 Nov 2022 11:38:27 +0000 (12:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 14 Nov 2022 13:27:16 +0000 (14:27 +0100)
commit1f0e8a162442af5877847a6246ad429e179cf42e
tree13b36b495d6754f23a97ceaf849d2c92a7b61dd4
parent4e7f60c22018b712dc9ed021ac0e3c5e47606444
asciidoc-pve: disallow certain characters in onlineHelp keys

this removes the lazily evaluated part of the regex used to detect
`onlineHelp` keys in order to match them with asciidoc anchors in the
documentation. it uses a pattern that excludes curly braces, brackets
and quotations instead. this allows for greedy matching and also
removes an issue where keys that are set via CBind were included
incorrectly. the script would try to find an anchor name that was
equivalent to the CBind placeholder, which would fail.

since brackets, curly braces and quotation marks aren't allowed in
asciidoc anchors anyway, excluding them like this should be safe.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
asciidoc-pve.in