]> git.proxmox.com Git - pve-container.git/commitdiff
parse pct config: remove "\s*" from multi-line comment regex
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 24 Feb 2022 14:21:50 +0000 (15:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 06:16:29 +0000 (08:16 +0200)
To be consistent with PBS's implementation of multi-line comments
remove "\s*" here too. Since the regex isn't lazy .* matches
everything \s* would anyway. (Note that new lines occurs after "$").

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/PVE/LXC/Config.pm

index d5b49d373a4429257ac5ed0e6e01bf72d88f6614..b4b0261d413ab6cfb454e60f67b09e88aea160ea 100644 (file)
@@ -943,7 +943,7 @@ sub parse_pct_config {
            next;
        }
 
-       if ($line =~ m/^\#(.*)\s*$/) {
+       if ($line =~ m/^\#(.*)$/) {
            $descr .= PVE::Tools::decode_text($1) . "\n";
            next;
        }