5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2024-12-22 13:34:16 +03:00

directory: fix verify-dir code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-03-16 17:16:04 +01:00
parent 97edd11f6b
commit 574fb9ad11

View File

@ -355,8 +355,7 @@ PVE::JSONSchema::register_format('pve-dir-override', \&verify_dir_override);
sub verify_dir_override {
my ($value, $noerr) = @_;
if($value =~ m/^([a-z]+)=\/.+$/ &&
verify_content($1, $noerr)) {
if ($value =~ m/^([-a-z]+)=\/.+$/ && verify_content($1, $noerr)) {
return $value;
}