mirror of
https://git.proxmox.com/git/pmg-api
synced 2025-10-04 07:20:22 +00:00
![]() Return a quoted regex that is surrounded by a non-capturing group, which makes it behave more like expected if used with anchors I.e., previously a match like /^$valid_pmg_realm_regex$/ would look like it must be an exact match, but actually only anchor the first case at the start, the last case at the end and the others nowhere. As concrete example /^foo|bar|baz$/ allows any string that starts with foo, any string that ends with baz and any string that contains bar somewhere, i.e. "foo" is accepted just like "foo123". Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
---|---|---|
debian | ||
src | ||
.gitignore | ||
Makefile |