From 574fb9ad1182c8c281dabc37699fbafb0472da54 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 16 Mar 2023 17:16:04 +0100 Subject: [PATCH] directory: fix verify-dir code style Signed-off-by: Thomas Lamprecht --- PVE/Storage/Plugin.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index ca7a0d4..2c5ba53 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -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; }