]> git.proxmox.com Git - qemu-server.git/commitdiff
parse vm config: remove "\s*" from multi-line comment regex
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 24 Feb 2022 14:21:51 +0000 (15:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 06:17:21 +0000 (08:17 +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>
PVE/QemuServer.pm

index 5db10fe68cfd87d33edf10e2d6026bd773185643..8c788b48cd88d2dc9204b2d1da089e379e44cc60 100644 (file)
@@ -1,4 +1,4 @@
-package PVE::QemuServer;
+rpackage PVE::QemuServer;
 
 use strict;
 use warnings;
@@ -2410,7 +2410,7 @@ sub parse_vm_config {
            next;
        }
 
-       if ($line =~ m/^\#(.*)\s*$/) {
+       if ($line =~ m/^\#(.*)$/) {
            $descr = '' if !defined($descr);
            $descr .= PVE::Tools::decode_text($1) . "\n";
            next;