dualfroz 3d92bbd515 utils: safe id regex: do not allow backslashes
The comment says the regex is the same as SAFE_ID_REGEX in
proxmox-schema, but the character class has an additional backslash.
It was there since the regex was added, as '\\-' in a regex literal
matches a backslash and a hyphen, and the reordering for the linter
kept it.

So the UI accepts a webhook endpoint name like 'a\b', which the API
then rejects as it does not match the schema. Drop the backslash, so
that the field shows the name as invalid right away.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 02:58:10 +02:00
S
Description
My contributions to proxmox-git/proxmox-widget-toolkit: 6 commits
132 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 100%