parse vm config: remove "\s*" from multi-line comment regex

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>
This commit is contained in:
Stefan Sterz 2022-02-24 15:21:51 +01:00 committed by Thomas Lamprecht
parent 8a0d269b75
commit d1e7b92289

View File

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